Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 11 - No. 44)
What is the purpose of using comments within an algorithm or its code?
To improve the execution speed of the algorithm.
To make the code longer and more complex.
To explain the code to someone else or to yourself later.
To declare variables.
Explanation
Comments improve readability and understanding of the algorithm, and are there for the humans who are viewing/modifying the algorithm and code, not the computer.
Comments (0)
