Single Line Comment

July 8, 2010 1 Comment » Hits : 171





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");
}
  • http://brightsitez.com/Okkervil-River Okkervil River

    We have need of very little learning to have a good mind.