Computer Science, asked by creepsterrorispbwn4y, 9 months ago

What are comments in C++? What is the symbol and types and can u write a example code pls?​

Answers

Answered by Anonymous
36

Answer:

There are two types of comments in C++. Single line comments uses double slash //. Multiple line comments uses /* comment inside */.

Answered by mahadev7599
3

A well-documented program is a good practice as a programmer. It makes a program more readable and error finding become easier. One important part of good documentation is Comments.

In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program

Comments are statements that are not executed by the compiler and interpreter.

In C/C++ there are two types of comments :

  1. Single line comment
  2. Multi-line comment
Similar questions