Which of the following is used for comments in C++? // comment /* comment */ both a & b // comment */
Answers
Answered by
0
Answer:
both a &b
Explanation:
Check wether it is right or not I am not conform
Answered by
0
both a & b
Both //comment and /*comment */ are correct.
- //comment in C++ is used for displaying a single line comment whereas,
- /*comment */ is used for displaying the multiple lines comment.
- Comment in C++ is the statements that are not executed by the compiler.
- The purpose of the comment in C++ software is to explain the program, variables etc used.
- The two types of explanation in C++ are
- Single line comment
- Multiple line comment
Similar questions