A program is a set of definitions of variables, functions and data types.
Basic structure of a C program consist of 6 parts
- Documentation section which consist of a set of comment
- The link section that provides instruction to the compiler to link the header files or functions from the system library.
- The definition section which defines all symbolic constants such by using the #define directive.
- Global declaration section: which consist of variables that are used in more than one function.
- Main function section where the main execution of a program takes place
- Subprogram section which contains all user-defined functions that are called in the main() function.
Comments
Leave a comment