What is the main purpose of using comments in c plus plus?

1 answer

Answer

1090862

2026-04-16 08:01

+ Follow

The main advantage of the newer C++ comment syntax is that you only need to start the comment, and you can expect that it will last only until the end-of-line. With the older syntax, you needed to also stop the comment. any statement; /* old comment syntax */

any statement; // new comment syntax

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.