C++ Comments
// starts a one line comment and /* */ spans several lines. Doxygen style /** */ comments document functions.
Example
cout << "start\n";
// one line
/* several
lines */
cout << "end\n";Result
start end
Exercise
One line comment.
noteQuiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.