C++ Comments
C++ Comments
Comments are the statements that are not executed by the compiler. It is used to provide explanation of code and program.
Comments are of two types
1) Single line comment //
2) Multi line comment /* */
1) Single line comment used to expain a single line statement. it starts from double slash //
example int i=0 ;//i is a variable
2) Multi line comment used to expalin multiple line of code. it starts from /* and close with */
/* declare a variable and
display it on screen */
example int i=10;
cout<<i<<endl;
Comments
Post a Comment