0
In single line comment output comes but jn double line comment no output ??
3 ответов
+ 2
Comments don't generate an output. They are used to leave notes in your code or to disable code.
You probably had something like that:
// I'm a comment!
cout << "This is an output!" << endl;
/* I'm a multiline comment! */
and decided to replace // by /*, without closing with */. In that case, the matching */ will be the one from /* I'm a multiline comment! */, meaning that this whole block will turn into a comment.
+ 1
//this is a single line comment
/*this is
a multiline
comment*/
0
but in multiple comment output doesn't come why