What are comments in C++? What is the symbol and types and can u write a example code pls?
Answers
Answered by
36
Answer:
There are two types of comments in C++. Single line comments uses double slash //. Multiple line comments uses /* comment inside */.
Answered by
3
A well-documented program is a good practice as a programmer. It makes a program more readable and error finding become easier. One important part of good documentation is Comments.
In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program
Comments are statements that are not executed by the compiler and interpreter.
In C/C++ there are two types of comments :
- Single line comment
- Multi-line comment
Similar questions