Can we nest multiple line comments in a c++ code? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

Can we nest multiple line comments in a c++ code?

27th Nov 2018, 1:29 AM
Abhisheque Regmi
Abhisheque Regmi - avatar
13 Antworten
+ 3
Yes, you absolutely can. Multiple line comments in c++ begin with /* and end with */ For example: /* This is a comment that uses multiple lines */
27th Nov 2018, 5:07 AM
Kirk Hunt
Kirk Hunt - avatar
+ 2
Surely/* comments*/
27th Nov 2018, 8:38 AM
Wahid khan
+ 2
//single line comments /* Multiline comments which can span over many lines */
28th Nov 2018, 1:24 PM
Seniru
Seniru - avatar
0
hello
29th Nov 2018, 1:12 PM
Макс Мельник
Макс Мельник - avatar
0
/*cmment*/
10th Dec 2018, 3:48 AM
cali
0
yes c++
10th Dec 2018, 5:24 PM
DHANA SEKAR M
DHANA SEKAR M - avatar
0
Yes
11th Dec 2018, 6:03 AM
Jheyssa Cardinas
Jheyssa Cardinas - avatar
0
Yes you can .. for example /* This is an example */
4th Jan 2019, 2:20 AM
Candice Dick
Candice Dick - avatar
0
/* This is a comment*/
12th Sep 2020, 1:53 PM
amigopro123
amigopro123 - avatar
- 1
я чайник
29th Nov 2018, 1:13 PM
Макс Мельник
Макс Мельник - avatar
- 1
Yes you can do that
30th Nov 2018, 6:26 PM
Azaglo Venunye Vincent
Azaglo Venunye Vincent - avatar
- 1
/* */
5th Dec 2018, 11:12 AM
EG Mufari
EG Mufari - avatar
- 1
Yes c++ /* */
6th Dec 2018, 3:01 PM
amigopro123
amigopro123 - avatar