+2 votes
in Class 12 by kratos

What is the role of comments in a program? What are the different ways of giving comments?

1 Answer

+6 votes
by kratos
 
Best answer

Comments improve the understandability of the program.

They describe the function of the code. They can be

>Line comment //

>Block Comment /………../

...