+ 1

Comment

Why we use single and double line comments in a program?

7th Feb 2020, 11:46 AM
Muhammad Nazam
1 Odpowiedź
+ 2
A single line comment doesn't remain a comment as soon as you press enter to move on a new line. So if you use a single line comment then make sure that you keep it short, preceded by //. /* On the other hand if you have a couple of sentences or paragraphs which are to be commented, you can make use of the multi line comment. This is a multi line comment from the beginning of the last paragraph */
7th Feb 2020, 12:30 PM
Avinesh
Avinesh - avatar