+ 3
What is the use of a comment if it is not read by the compiler
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
+ 2
it is used for own programmer for understand what type of programmes is this & how is functioned.
+ 1
comments are useful for non programmers to understand the program block code
+ 1
comments are useful for programmers..
to read the program easily, which helps programmers to edit program easily..
0
these are to enhance the readability of code
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.