COMPUTER PROGRAM:

A Computer porgram is a set of instructionthat can be exeuted by a computer.

Low-level language - Machine language - 0's , 1's.
High- level language -  c, c++ etc

C Program:


C program is general-purpose, high-level language developed in 1972.
its a professional language.

Reasons:

Easy to learn.
structured language.
it produces efficient program.
it can handle low level activities.
it can compile on variety of computer platforms.


Source code:


Source code is the list of human-readable instructions that a programmer writes—often in a word processing program—when he is developing a program. The source code is run through a compiler to turn it into machine code, also called object code, that a computer can understand and execute.

Preprocessor:

A preprocessor is a program that processes its input data to produce output that is used as input to another program. The output is said to be a preprocessed form of the input data



Compiler:


compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses. 

eg: test.c to test.o (or) test.obj
      

Linker:


A Linker is a computer program that takes one or more object files generated by a compiler and combines them into one, executable program.

Execution:


The executable code is sent to loader which loads it in memory and then it is executed. After execution, output is sent to console.

eg: test.exe.