Can single line comment begin and end like a multi line comment? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Can single line comment begin and end like a multi line comment?

26th Oct 2015, 4:33 PM
kiranramesh
8 Respuestas
+ 3
no, because both are different types comment style in c++. And the best way to learn programming is to do it in real
11th Jun 2016, 6:17 PM
VARUN KUMAR
VARUN KUMAR - avatar
+ 2
There is no need to treat a single line comment like a multiple line comment. /* I can cause C++ to ignore all of this text that covers two lines */ // C++ ignores this text, too. // C++ ignores the last two characters // which add no value to the comment except to make it visually more identifiable
24th Apr 2016, 6:24 AM
ic01010101 ◼️LM
ic01010101 ◼️LM - avatar
0
yes
18th Jun 2016, 11:18 AM
manokirthika
0
i really wanna know too...if yes..why?
18th Jun 2016, 2:34 PM
Achilles paonam
Achilles paonam - avatar
0
/* endls */
20th Jun 2016, 4:46 PM
sukhvinder
sukhvinder - avatar
0
yes
8th Jul 2016, 6:05 PM
Kartik Jain
Kartik Jain - avatar
- 1
Yes, I think so
14th Apr 2016, 1:42 PM
Musa Rikhotso
Musa Rikhotso  - avatar
- 1
yes
23rd Apr 2016, 6:50 PM
Shakti Agrawal
Shakti Agrawal - avatar