menu search
person
what are c++ comments ?
thumb_up_alt 50 like thumb_down_alt 0 dislike
6 views

1 Answer

 
verified

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 "/*       */"
thumb_up_alt 50 like thumb_down_alt 0 dislike

Related questions

thumb_up_alt 50 like thumb_down_alt 0 dislike
173 views 1 answer
thumb_up_alt 51 like thumb_down_alt 0 dislike
189 views 1 answer
thumb_up_alt 50 like thumb_down_alt 0 dislike
5 views 1 answer
thumb_up_alt 50 like thumb_down_alt 0 dislike
2 views 0 answers
thumb_up_alt 50 like thumb_down_alt 0 dislike
4 views 1 answer
...