Hi My name Is Pavan prasad this video will show you the structure of a C program
Structure:
Documentation section Header file section Global variable declaration Main function { } User defined function { }
Comment lines : comment lines will improve the readability of a user. In C language comment lines are started with /* and ended with */ Documentation section:
Header file section: In C language we have so many header files. Each and every header file will have ‘ .h ’ extension. A header file contains the function definition.
Global variable declaration: Variable : variable is the name of the memory location. Global variable: These are the variables which are defined out side the function and those variables can be accessed through out the program.
Main function: The main function the one where the program execution starts and terminates. Syntax: datatype main() Datatype : There are different datatypes in C language and void is the default datatype.
Thanks for watching Please SUBSCRIBE to my YouTube channel ( Pavan prasad. G )