Quiz on C++ Comments



1. What are the two types of comments in C++?
2. How do you write a single-line comment in C++?
3. Which symbol is used to start a multi-line comment?
4. Can comments be nested in C++?
5. What is the primary purpose of comments in C++?

Advertisements