Comment statements are non-executable statements. These statements are used to increase the readability and understanding of the program. A comment statement can be included anywhere in the program. There are two types of comments. they are,
1) Multiline comment
2) Singleline comment
All multiline comments should start with /* and end with */. No space is allowed between * and /.
All singleline comments should start with //. No space allowed between /and /.
Example:
1) /* program to find the sum of three
numbers */
2) // program by Jhon, Ramu and Rahmon.
0 comments:
Post a Comment