The C++ comments are statements that are not executed by the compiler. The comments in C++ programming can be used to provide explanation of the code, variable, method or class. By the help of comments, you can hide the program code also.
There are two types of comments in C++.
Single Line comment
single line comment is shown by "//"
multi line comment
Multi line comment is shown as "/* */"