STRUCTURE OF C PROGRAM

Опубликовано: 12 Октябрь 2024
на канале: ideal coachings
373
24

C language is a case sensitive language. All statements must be written in small letters.
1. Documentation : It deals with comments statement, which is use to make program more readable and understandable.
2. Header files provides instruction to the compiler to link functions from system library. It is also called Preprocessor Commands.
3. Symbolic Constants :
e.g. # define PI 3.14
define FALSE 0
4. Global declaration section consist of all global variables. Global variables are the variables that are used in more than one function.
5. Every C program must have one and only one main ( ) function section.
The declaration part of this section declares all the variables used in the executable part. There is atleast one statement in executable part.
6. The subprogram section contains all the user-defined functions that are called in the main function.