What are the comments in c++?
Answer / Manish Kumar Jain
Comments in C++ are used to provide explanations or notes within the code. They do not affect the program's execution.nn1) Single-line Comment: A single-line comment starts with two forward slashes (//). Everything after the double slash on that line is considered a comment and ignored by the compiler.nExample:n```cppn // This is a single-line commentn```n2) Multiline Comment: Multiline comments are enclosed between /* and */. These can span multiple lines and are useful for longer explanations or sections of code that you want to temporarily disable without deleting.nExample:n```cppn /* This is a multiline comment
This can span multiple lines
*/n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you know about latest advancements in C++ ?
1 Answers Agilent, ZS Associates,
Name the debugging methods that are used to solve problems?
what do you mean by memory management operators
Explain pass by value and pass by reference.
Difference between Overloading and Overriding?
35 Answers Appnetix Techno, GameLoft, HP, IBM, NIIT, Rohde and Schwarz,
What are libraries in c++?
What is different in C++, compare with unix?
How do I exit turbo c++?
Is there any difference between int [] a and int a [] in c++?
Explain virtual functions in C++.
How should a contructor handle a failure?
What is vector processing?