What are the ways to comment statement in C++?

What are the ways to comment statement in C++?

- All programming languages allow for some form of comments.

C++ supports two types of comments:
1. Single-line comment
2. Multi-line comment

- Comments help to read the source code.

1. Single-line comment: ' // ' is used for single line comments.
2. Multi-line comment: ' /* */ ' is used for multi-line commenting a block of code.
What is structure in C++?
Structure in C++ - The C++ programming technique allows defining user defined datatypes through structure..
What is reference variable in C++?
What is reference variable in C++? - A reference variable is just like pointer with few differences...
What is class using C++?
Class using C++ - A class holds the data and functions that operate on the data....
Post your comment