+ 2

why do we write comment line even when it is ignored by the compiler ??

7th Sep 2016, 3:10 PM
Nids
Nids - avatar
8 odpowiedzi
+ 3
To leave notes, or to dummy out a block of code you want to be able to put back easily.
7th Sep 2016, 3:19 PM
Zen
Zen - avatar
+ 3
It is usually used to make the program more efficient and more understandable.
7th Sep 2016, 3:59 PM
Aman Bindal
Aman Bindal - avatar
+ 3
Comment lines are important for leaving some notes or necessary info in your codes.
11th Sep 2016, 9:48 AM
anne_stark
anne_stark - avatar
+ 2
Comments are explanatory statement which shows, what did code actually do.
7th Sep 2016, 5:47 PM
Danish Laraib
Danish Laraib - avatar
+ 2
If you are sharing your code with someone who's a coder himself he/she might get confused on some part of your code. So for his/her better understanding use of comment line in your code is efficient.
8th Sep 2016, 4:02 PM
Upen Gurung
Upen Gurung - avatar
0
thanks Zen 🙂
7th Sep 2016, 3:30 PM
Nids
Nids - avatar
0
comment are used in program to clarify either the purpose of the program or the purpose of some statement.
22nd Sep 2016, 2:03 PM
Vishwas Ashwini
Vishwas Ashwini - avatar
0
Ever had a hard time reading someone's handwriting or forget something you were going to say? Comments make your code quick to understand why it's there and what its doing. Ideally they should be used sparingly as you should be making easy to read code by properly naming functions, variables, and breaking out features to separate functions.
28th Sep 2016, 6:25 PM
Ilya Kole (Soliphied)
Ilya Kole (Soliphied) - avatar