Which of the following is used for single-line comment in C++?

10. Which of the following is used for single-line comment in C++?

  1. //
  2. \\
  3. /* */
  4. ##

Answer: A) //

Explanation:

We use "//" for single-line comments in C++.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.