Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following is used for comments in C++?

a) /* comment */
b) // comment
c) // comment */
d) both // comment or /* comment */

Answer: d
Explanation: Both the ways are used for commenting in C++ programming. // is used for single line comments and /* … */ is used for multiple line comments.

Join The Discussion