Comments

Comments are statements in source code that are ignored by the compiler.  They are included by programmers for various reasons:

  • Include author, date and email of the source code
  • Indicate what a block of code does
  • Specify future work

There are two types of comments: single line comments and multiple line comments, as shown below.

//  Eric McGregor

/*
    The following code does
    this and that ...
*/

About the author