.

Comments In C++

Comments are written in the program to understand by the user. It can be used to prevent execution when testing alternate code.

Comments can be used as Single line comment or multi line comment

Single line comments

Single line comments starts with double forward slashes / /....................

Example

Multiple line comments

Multiple line comments can be provided by using /*......................*/

Example

comments in c++
.