Single Line Comment
- Single Line Comment Can be Placed Anywhere.
- Single Line Comment Starts with ‘//’ .
- Any Symbols written after ‘//’ are ignored by Compiler.
- This Comment has no control on the statements written
- Before Symbol ‘//’
- On Second Line next to ‘//’
Example :
#include<stdio.h>
void main()
{
printf("Hello"); //Single Line Comment
printf("By");
}Which Part is Ignored by Compiler ? [Shown by Underscore]
#include<stdio.h>
void main()
{
printf("Hello"); //_____________________Until Line Ends ___
printf("By");
}
