0 votes
334 views
in Discussion by (98.9k points)
edited
what are c++ comments ?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer

The C++ comments are statements that are not executed by the compiler. The comments in C++ programming can be used to provide explanation of the code, variable, method or class. By the help of comments, you can hide the program code also.
There are two types of comments in C++.
Single Line comment 

             single line comment is shown by "//" 
multi line comment 
           Multi line comment is shown as "/*       */"

Related questions

0 votes
1 answer 363 views
0 votes
1 answer 341 views
0 votes
0 answers 309 views
0 votes
1 answer 308 views
0 votes
1 answer 733 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

Recent Badges

Doubtly Earned a badge
Doubtly Earned a badge
Doubtly Earned a badge

5.7k questions

5.1k answers

108 comments

648 users

...