+ 3

Why do you put a single line comment at the beginning?

19th Oct 2016, 7:43 AM
Milly petrie
Milly petrie - avatar
5 Answers
+ 7
Often it can be placed there for the fact that the reader (and editor) gets an explanation on the code's purpose before going deeper into it.
20th Oct 2016, 6:41 AM
Kristian L
+ 3
comments are ignored by the compiler. so this is up to you, you can put comments when ever you want
19th Oct 2016, 7:55 AM
Mani Kanta
Mani Kanta - avatar
+ 3
cool thanks
19th Oct 2016, 7:56 AM
Milly petrie
Milly petrie - avatar
+ 2
For better understanding
20th Oct 2016, 9:16 AM
priyanka
0
easy way
7th Dec 2016, 10:38 AM
feroz khan