0
What is difference between single line comment and multi line comment?
7 Respuestas
+ 3
To explain your code for better clarity and also to store code which you feel isn't necessary now but might find it useful later
+ 2
@biswanath: no difference! Just depends what you want to use where
+ 1
like you are working on a group on some project, on your part code you write comments to make it clear for other members so that they don't need to read whole code to understand what is going on there.
0
then what is the used of that comment.. I mean it doesn't display on the output
0
The single line, you are allowed to only have a short line, up to one line.
Multi line is when you have a text that content more than 1 line.
0
single line for short description and u can start it with // and multiple line \*and ends *\
0
Even I got doubt in this .. there is no change in output .will get same with both comments..And also why we have to used these comment in programm what is the use of it ..can anyone explain it clearly