1.

Which of the following is used for comments in C++?(a) // comment(b) /* comment */(c) both // comment or /* comment */(d) // comment */This ia very basic question but worth mentioning.It is from Basics Concepts of C++

Answer»

Right answer is (C) both // comment or /* comment */

For EXPLANATION: Both the ways are used for COMMENTING in C++ PROGRAMMING. // is used for single line comments and /* … */ is used for MULTIPLE line comments.



Discussion

No Comment Found