C++
are simply a piece of source code ignored by the compiler. They are only helpful for a programmer to add a description or additional information about their source code.//single-line comment
/* block comment */
“//”
. In the second type, the compiler discards everything between “/*”
and “*/”
.