1.

What type of comments does c++ support?(a) single line(b) multiline(c) single line and multi-line(d) reusable lineThe question was posed to me at a job interview.The query is from Comments and Indentation in section Functions, Namespaces & Exceptions in C++ of C++

Answer»

The CORRECT answer is (c) single line and multi-line

Easy EXPLANATION - C++ PROVIDES two types of comments in PROGRAMS. They are single line(using //) or MULTIPLE line (using /*…… */) comments.



Discussion

No Comment Found

Related InterviewSolutions