+ 2
Please uhm what is the use of multi-line comment in c++....how and when will i use it
3 Answers
+ 2
If you want to comment a huge block of text or code.
It's easier to just type /* in the beginning and */ at the end of such a block than having // in front of every line.
However most editors support a shortcut to comment multiple selected lines using //
+ 2
// This is a single-line comment in C++.
// This is a really long comment
// that is very long and can span
// multiple lines.
/* C++ supports comments
like this */ (newline is ignored)
/*
* This is a prettier version of
* this style of comment (aka
* a C-style comment).
* The *s on the begining of
* each line are cosmetic-only.
*/
+ 2
thanks guys