Home Segments Index Top Previous Next

55: Mainline

Whenever your C compiler encounters a slash followed immediately by an asterisk, /*, the compiler ignores both characters and all other characters up to and including the next asterisk that is followed immediately by a slash, */. Thus, /* and */ delimit comments:

/* 
This line is a sample comment ... 
*/ 

If you want to test how a program works without certain lines of source code, you can hide those lines in a comment, instead of deleting them.