1.

How many types of comments are there in c++?(a) 1(b) 2(c) 3(d) 4This question was posed to me in exam.Asked question is from Comments and Indentation in section Functions, Namespaces & Exceptions in C++ of C++

Answer»

The correct choice is (b) 2

The EXPLANATION: There are two TYPES of comments in C++. Single line comments uses double SLASH //. Multiple line comments uses /* comment INSIDE */.



Discussion

No Comment Found

Related InterviewSolutions