To enter a comment in a C++ program, you begin the comment with _____ A. ** B. && C. \\ D. @ E. //

[amp_mcq option1=”**” option2=”&&” option3=”\\” option4=”@ E. //” correct=”option1″]

The correct answer is E. //

A comment is a piece of text that is ignored by the compiler. It is used to explain the code to other programmers or to yourself. To enter a comment in a C++ program, you begin the comment with two forward slashes (//). The comment can be any length and can contain any characters, but the compiler will ignore it.

The other options are incorrect because they are not valid C++ keywords.

  • ** is a multiplication operator.
  • && is a logical AND operator.
  • \ is an escape character.
  • @ is a special character that can be used to define a macro.

I hope this helps!

Exit mobile version