Structure of C Program: // single line Comments # pre-processor directives prototype declarations global variables main() function { local variable declaration statements ------ -------- ------- } user_defined_function1() { variable declaration statements ----- ----- ----- } Explanation: 1. Comments: Comments can be places anywhere in the program; generally used for documentation purposes or to increase the readability of the code. There are two types of comments 1. Single line comments 2. Multi line comments Single line comments starts with // followed by statement ex: // this is a single line comment Multi line comment start with /* and ends with */. ex: /* This is multi line comment */ 2. Preprocessors Directives:...
Comments
Post a Comment