- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Comments in C++ Programming Language
45 Lectures 4.5 hours
66 Lectures 5.5 hours
Program comments are explanatory statements that you can include in the C++ code. These comments help anyone reading the source code. All programming languages allow for some form of comments.
C++ supports single-line and multi-line comments. All characters available inside any comment are ignored by C++ compiler.
Single line comments
To create a single line comment, we use the // notation. Wherever you want to start the comment, start it with //. For example,
// This is a comment cout<<"Hello"; // This is a comment following a statement.
Multiline comments span multiple lines and are often called block comments. You can use it using the /* */ notation. For example,
/* This is a Multiline comment */
- Comments in Dart Programming
- Comments in Rust Programming
- Comments in Lua Programming
- What are comments in Java language?
- C++ Programming Language Features
- C Programming Language Standard
- What is Programming Language?
- Functions in Rust programming language
- What is C++ programming language?
- Basics of C++ Programming Language?
- A C Programming Language Puzzle?
- What is Perl Programming Language?
- Rust programming language – Applications
- Downsides of Rust Programming Language
- Limitations of C programming language