Computer Science for IGCSE & O level - Programming (Section 2 - No. 25)

In a programming context, what is a comment used for?
To generate machine code.
To display text to the user.
To explain what the code does.
To define the program's structure.

Explanation

Comments are meant to make the code easier to comprehend.

Comments (0)

Advertisement