Tuesday, April 28, 2020

C language chapter-3.comments



•      Comments are the text which will not be compiled by the compiler. It will just ignore them.
•      Comments are used to give documentation to the program
•      When we will revisit our program after sometime or any other programmer visit your program they must understand what is the purpose of the code.



Example
/* this print output on the screen*/
Starts with /*
Ends with */
Multi line comment
/* this is
Example for
multiline comment */
End line comment
Printf(“hello world”); /*prints output */


Thank you.
contact:9629329142.
please visit my youtube channel programming digest

No comments:

Post a Comment