Computer Science, asked by Varunrf9878, 10 months ago

Which of the following is used for comments in C++? // comment /* comment */ both a & b // comment */

Answers

Answered by annupk2006
0

Answer:

both a &b

Explanation:

Check wether it is right or not I am not conform

Answered by KajalBarad
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
  1. Single line comment
  2. Multiple line comment
Similar questions
Math, 5 months ago