Wednesday, 23 January 2019

Why are comments required in a program

Why are comments required in a program?

Answer:


Comments provide the programmer with a clear, easy-to-read description of what the
program does. They are required because uncommented programs are hard to understand
(sometimes even the person who wrote them can’t understand them). Uncommented
programs are also extremely difficult to maintain.
As the age and complexity of software programs skyrockets, maintenance (and
comments) becomes much more important.

No comments:

Post a Comment