The Comments are the explanatory statements that we can use in the C++ code. The comments are helpful in reading the source code of the program. The comments are ignored by the C++ compiler because there is no need of comments about the program compiling/execution.
Types of comments
There are two types of comments supported by C++;
A comment can also start with //, extending to the end of the line. For example –