What's the difference between //,/*and*/? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What's the difference between //,/*and*/?

I have an problem with comments!! explain the difference between them!

14th Jan 2017, 4:10 AM
Shadow Windster
Shadow Windster - avatar
4 Answers
+ 16
// is a single line comment /* is a multiline comment */ // Comments explains code /* By using comments we can clarify details and give other programmers a clue as to what they're looking at. */
14th Jan 2017, 4:14 AM
Don
Don - avatar
+ 3
yeah, don is absolutely right.
14th Jan 2017, 6:01 PM
Swarnab Das
Swarnab Das - avatar
+ 3
Yes, he's right!
28th Jan 2017, 8:45 PM
Roman Onishchenko
Roman Onishchenko - avatar
0
good job
30th Dec 2017, 1:33 AM
Bagas Fardi Surya
Bagas Fardi Surya - avatar