0

Whats functional diffrence b/w singel lime and double lime comments?

2nd Aug 2020, 9:31 AM
Medhansh Parashar
Medhansh Parashar - avatar
4 ответов
+ 2
Medhansh Parashar Technically, there is no difference. All forms of comments are ignored by a compiler. It is simply based on preference. If your comment needs to span multiple lines, use a multi-line comment(or several single line ones). If it can accomodate a line, use a single line comment.
2nd Aug 2020, 11:42 AM
Ore
Ore - avatar
+ 1
I don't think there is anything to explain in that. It is understood from the name: single-line comments are comments that span 1 line // single-line comment & multi-line comments are comments that span multiple lines /* this is a comment */
2nd Aug 2020, 10:09 AM
XXX
XXX - avatar
+ 1
HonFu lmao🤣
2nd Aug 2020, 11:36 AM
Ore
Ore - avatar