C is a Procedural Programming Language, mostly written to code an Operating System. C is one of the most famous programming languages and is the forefather of C++, one of the most widely used programming languages today. It has many features some of which are listed below:
Easy to understand.
Efficient Memory Usage.
Usage of Pointers.
Fast.
Structured Programming Language.
Mid-Level Programming Language.
Portable on all machines.
Rich user library.
Components of a C Program:
The main components constituting a C program are listed below:
Header Files: A header file is a file that has an extension .h and contains C function declarations and macros, which are to be shared between several source files, hence allowing reusability and hence more efficiency in building up programming logic.
Main Method: The main method is a function from where the program execution starts in C.
Program Body: The program body is the main part of the program where all the programming logic is written. It includes all the variable declarations, the program logic(loops, conditional statements, function calls, etc), and finally the return statement terminating the program.