Comments in C++
Comments make programming simple.
a) Single line comments:
They start with // (double slash) symbol and terminate at the end of the line.
For example .:
int a ; // declares the variable ‘a’ of integer type
b) Multi line comments:
Start with a /* symbol and terminate with a */ symbol.
For example,
/* This is a multi line comment */
No comments:
Post a Comment