+ 1

What is the use of comments?

7th Jan 2018, 9:21 PM
Daniel Wellz
Daniel Wellz - avatar
9 Answers
+ 6
Explaining why you write that code. Either for others, or for your future self. Because, belief me, a few month after writing you will have problems understanding your own code.
7th Jan 2018, 9:26 PM
1of3
1of3 - avatar
+ 3
Just helps you to write a readable code.
7th Jan 2018, 9:47 PM
Ali Z. Emili
Ali Z. Emili - avatar
+ 3
Comments help other programmers (including your future self) understand your code more quickly.
8th Jan 2018, 3:18 AM
Eric Blinkidu
Eric Blinkidu - avatar
+ 3
clarification of what's you doing in programme
9th Jan 2018, 1:12 AM
Shaik Basha
Shaik Basha - avatar
+ 2
So that you'll know 'a' is the variable for the height of the menu next time you, or anyone sees the code. Just an example.
7th Jan 2018, 9:28 PM
Manu Karki
Manu Karki - avatar
+ 2
comments help programmer or it's analyzer to solve problem by explaining what the code does
8th Jan 2018, 9:14 AM
Ak_41
Ak_41 - avatar
+ 1
thank you all
8th Jan 2018, 9:15 AM
Daniel Wellz
Daniel Wellz - avatar
+ 1
so anyone or yourself can refer to them for clarification
11th Jan 2018, 3:19 AM
Starry_Knight
Starry_Knight - avatar
0
it's nothing but creation with rule and relavent document is
10th Jan 2018, 4:48 PM
Shaik Basha
Shaik Basha - avatar