Computer Science for IGCSE & O level - Programming (Section 9 - No. 26)

Which of the following best describes the purpose of comments in code?
To execute the program.
To change the value of a variable.
To provide documentation for the code.
To delete unnecessary code.

Explanation

Comments explain the code's purpose, making it easier to understand.

Comments (0)

Advertisement