Why cant i just use /* for single line and multiple line comments? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why cant i just use /* for single line and multiple line comments?

10th Aug 2018, 4:04 PM
Brandon Dean Anderson
Brandon Dean Anderson - avatar
4 Answers
+ 1
Because parser must differentiate which token its used for single line and which for multiline
10th Aug 2018, 4:07 PM
KrOW
KrOW - avatar
+ 1
thx ODLNT that helps a lot.
10th Aug 2018, 5:31 PM
Brandon Dean Anderson
Brandon Dean Anderson - avatar
0
Ok. thanks.
10th Aug 2018, 4:08 PM
Brandon Dean Anderson
Brandon Dean Anderson - avatar
0
👍👍👍
10th Aug 2018, 4:09 PM
KrOW
KrOW - avatar