Examples of comments
/*This is a comment*/
/****************************************************
* Brenda Sonderegger *
* *
* This is a comment that will be used to make the *
* program header stand out and be very obvious and *
* easy to find. This comment goes over several *
* lines. The "stars" are just used to highlight *
* the area and are not all needed. *
* All comments start with slash star and end with *
* star slash. NO SPACES between them. *
* *
****************************************************/
#include <stdio.h>
int main(void)
{
/*comments can go anywhere*/
int num; /* at the end of a line of code*/
num = 12 /*even in the middle of a line*/ + 2;
/*the above comment is NOT a good thing to do
comments should NOT be embedded within code*/
printf("\nnum = %d", num);
return(0);
}
/*end of program and another place that comments can go*/