Friday 29 March 2013

C Program



Computer Program:

A set of instructions given to the computer to perform a specific task is called computer program. A computer program is written in a programming language. A programming language provides rules for writing programs. Since the advent of computer many programming languages have been developed such as C, C++,C#,  JAVA, BASIC, COBOL, FORTRAN, PASCAL etc.



History of C Language:


C is a general purpose programming language. It was developed at AT & T Bell Laboratories, USA in 1972. It was designed and developed by Dennis Ritche. The C language was developed to write system programs for UNIX operating systems. 


Source Program:

A program written in high level language is called source program. It is also called source code.
The computer does not understand source program. It works only binary numbers, zeroes or ones or combination of these. Therefore, the source program cannot run directly on the computer. It first converted into the binary numbers for execution by the computer.

Object Program:
A computer program in a machine language is called object program. It is also called object code.
Machine language is a native language of the computer. Therefore a program written in machine language or in the form of zeroes or ones can runs directly on the computer.