What are the ways to comment statement in C++?- All programming languages allow for some form of comments.
C++ supports two types of comments: 1. Single-line comment 2. Multi-line comment
- Comments help to read the source code.
1. Single-line comment: ' // ' is used for single line comments. 2. Multi-line comment: ' /* */ ' is used for multi-line commenting a block of code.
|