C++ Comments

Go to main Page

Comments in C++

We use C++ Comments to make the code easy to understand for anyone.

With the help of comments, we can easily modify our code.

Comments are very helpful in the reconstruction of Applications and software.

Comments are part of code but do not execute in Code.

Comment Single Line Code

we use // to comment our code and this part of our code does not execute.

// is used to comment Single line code.


// This is Comment

Multiple Line Code

we use /* at start of comment and */ at the end of comment.

/*This is Comment
This is line 2
This is line 3*/