Rules of Writing Comments

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Rules :
1 . Program Contain Any number of comments at any place

void main(/*Main Function*/)
{
int age; // Variable
printf("Enter Your Age : ");
scanf("%d",/*Type Age*/&age);
printf("Age is %d : ",/*Your age here*/age);
getch()
}

2 . Nested Comments are not allowed i.e Comment within Comment

/* This is /*Print Hello */ */
printf("Hello");

3 . Comments can be split over more than one line.

printf("Hello");    /* This  
                       is 
                       Comment */

4 . Comments are not Case-Sensitive.

printf("Hello");
    /* This is Comment */
    /* THIS IS COMMENT */

5 . Single line Comments Starts with ‘//’

printf("Hello");
    // This is Single Line Comment