+ 5

Can we nest multi line comments in a C++ code?

Comments in C++ programming language

8th Dec 2017, 10:43 PM
Perez
Perez - avatar
3 odpowiedzi
+ 10
/* Comment out printing of Hello world! cout << "Hello world!"; // prints Hello world! */
8th Dec 2017, 11:19 PM
Vukan
Vukan - avatar
+ 6
Try to do it.
8th Dec 2017, 11:14 PM
Manual
Manual - avatar
+ 5
No. You must either start and end before existing comments or use #ifdef
8th Dec 2017, 11:24 PM
John Wells
John Wells - avatar