- Single line comments: sample
- Multiple line comments: sample
- Comments are added to explain who created the code and what time was the code created, etc.
- Comments are added to make the code readable or explain what the code means.
- We can temporarily comment out unused code in the program by adding // and remove the double slash to get it back.
// This is a single line comment
/* This is multiple line comments Author: XXXXXX Date: 2014-07-01 */