C++ Comments

Comments are generally used as hints that developers can add to make their programs easier to read and understand. They are fully ignored by compilers.

There are two ways for commenting:

For Example:

Why use Comments?

If we write comments on our code, it will be easier for us/developers to understand the code in the future.