0

In single line comment output comes but jn double line comment no output ??

16th Oct 2016, 4:45 PM
ashwani
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.
16th Oct 2016, 5:01 PM
Zen
Zen - avatar
+ 1
//this is a single line comment /*this is a multiline comment*/
16th Oct 2016, 4:47 PM
Zen
Zen - avatar
0
but in multiple comment output doesn't come why
16th Oct 2016, 4:49 PM
ashwani