+ 3
What is the actual use of document comments
2 Answers
+ 9
Siddhant Kundargi Comments in any language are added for the purpose for making the code easier to understand by the coder himself(if he visited his code after a long time) or for others who viewed the source code. These explain what part of code perform which function. Moreover the comment are ignored by compilers and interpreter.
https://www.sololearn.com/Discuss/1765511/?ref=app
+ 2
You can also basically view them as notes. Comment what the code does or what the output will be.