04-06-2022, 02:24 PM
Multi line comments span over two or more lines and are ignored by the compiler.
In C they start with a slash and an asterisk /* and they end with an asterisk and a 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 multi
line comment
*/
return 0;
}
In C they start with a slash and an asterisk /* and they end with an asterisk and a 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 multi
line comment
*/
return 0;
}
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos