04-06-2022, 02:22 PM
Single line comments span over one line only and are ignored by the compiler.
In C they can be done with a double Slash.
In this case we do NOT need a semicolon at the end of the line.
Example:
#include <stdio.h>
int main()
{
// This is a single line comment
return 0;
}
In C they can be done with a double Slash.
In this case we do NOT need a semicolon at the end of the line.
Example:
#include <stdio.h>
int main()
{
// This is a single line comment
return 0;
}