what is a single line comment? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is a single line comment?

25th Nov 2016, 1:44 PM
Muhammad Shazab
Muhammad Shazab - avatar
3 Answers
+ 1
single line coment must be on one line;
25th Nov 2016, 1:46 PM
Nguyễn Hoàng Long
Nguyễn Hoàng Long - avatar
+ 1
A single line comment is a line of comment. It is done by // sign. It does not need a closure as it ends with the end of the single line. Multiple line comment is done by /* at the start and */ at the end
25th Nov 2016, 1:53 PM
Ravi Garbuja Pun
Ravi Garbuja Pun - avatar
0
Single line comment means done on single line. It is represented by // sign. Multi line comment represented by*/....................... */
25th Nov 2016, 3:09 PM
joffie
joffie - avatar