Comments | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Comments

why we use comments since they are not displayed in pogram runtime

29th Jan 2017, 6:52 AM
arun
4 Answers
+ 7
Programmers frequently pass program files between other developers on the same dev team. Comments help clarify why something was written the way it was and/or how to use it correctly. Whoever may be managing the program in the future (including yourself!) might be glad to have the comments, too. Documentation is usually necessary as well in a workplace. Developer name(s), date/time of writing, company name, purpose of the program, etc. may be documented inside the source code.
29th Jan 2017, 7:58 AM
Tamra
Tamra - avatar
+ 2
Commenting involves placing Human Readable Descriptions inside of computer programs detailing what the Code is doing. Proper use of commenting can make code maintenance much easier, as well as helping make finding bugs faster. Further, commenting is very important when writing functions that other people will use.
29th Jan 2017, 7:03 AM
abdullah shallal
abdullah shallal - avatar
+ 1
to understand functionality.
29th Jan 2017, 9:24 AM
Vaisakh
Vaisakh - avatar
+ 1
thanks everybody
29th Jan 2017, 10:46 AM
arun