Basic Structure of C Program

Basic Structure of C program

Documentation Section

Basic Structure of C Program

This section consists of comment lines that embody the name of technologist, the author and alternative details like time and date of writing the program. Documentation section helps anyone to urge a summary of the program.

Link Section

The link section consists of the header files of the functions that are employed in the program. It provides directions to the compiler to link functions from the system library.

Definition Section

All the symbolic constants are written in the definition section. Macros are referred to as symbolic constants.

Global Declaration Section

The international variables that may be used anyplace within the program are declared in the global declaration section. This section conjointly declares the user-outlined functions.

main() operate Section

It is necessary to have one main() operate section in each C program. This section contains 2 components, declaration and workable half.

The declaration half declares all the variables that are employed in workable part. These 2 components should be written in between the gap and shutting braces.

every statement within the declaration and workable half should finish with punctuation (;). The execution of the program starts at gap braces and ends at closing braces.

Subprogram Section

The software package section contains all the user-outlined functions that are wont to perform a selected task. These user-outlined operates are known as within the main() function.


I Love python, so I like machine learning a Lot and on the other hand, I like building apps and fun games I post blogs on my website for Tech enthusiast to learn and Share Information With The World.

Leave a Reply

Your email address will not be published. Required fields are marked *

seventeen − 16 =

Recent Content