+ 3

What is the use of a comment if it is not read by the compiler

8th Dec 2016, 9:53 PM
mbile
6 ответов
+ 18
Comments are useful for yourself and other programmers. While they serve no purpose to the compiler, they provide insight into the inner workings of your code. For this reason, well written code should be properly documented (with use of comments). However, it should be noted that well written code should also require minimal comments, as it should be easy to identify what is occuring in your code simply from reading the syntax. ReCap: 1. Use comments to describe your code. 2. Use the least amount of words possible for another person to understand. Gud Luk! -bErN
8th Dec 2016, 10:04 PM
bernscode
bernscode - avatar
+ 2
it is used for own programmer for understand what type of programmes is this & how is functioned.
9th Jan 2017, 1:43 PM
Himanshu Singh
Himanshu Singh - avatar
+ 1
comments are useful for non programmers to understand the program block code
12th Feb 2017, 7:38 AM
sachin bheemanalli
sachin bheemanalli - avatar
+ 1
comments are useful for programmers.. to read the program easily, which helps programmers to edit program easily..
1st Mar 2017, 7:48 AM
Shiv Mishra🎸
Shiv Mishra🎸 - avatar
0
these are to enhance the readability of code
4th Jan 2017, 5:04 PM
jaya ram
jaya ram - avatar
0
comments communicate with human readers, your future self after you forget what this all was about or other people working with your code eventually.
5th Jan 2017, 1:29 AM
Jānis Āns
Jānis Āns - avatar