Source File- This file contains the source code of the program. The file extension of any c file is .c. The file contains C source code that defines the main function & maybe other functions
Header File- A header file is a file with extension .h which contains the C function declarations and macro definitions and to be shared between several source files.
Object File- An object file is a file containing object code, with an extension .o, meaning relocatable format machine code that is usually not directly executable. Object files are produced by an assembler, compiler, or other language translator, and used as input to the linker, which in turn typically generates an executable or library by combining parts of object files.
Executable File- The binary executable file is generated by the linker. The linker links the various object files to produce a binary file that can be directly executed.
COMPLIATION & EXECUTION OF A C PROGRAM