C Language

Introduction to C Language

Languages :
A Set Of Statements Is Called A Language.
There Are 4 Types Of Languages According To Their Time.

I Generation Languages : These languages are machine languages. To write programs in these languages the system technology must be required. The data is Non-portable. That means a program written in a system does not work in another systems.

II Generation Languages : These Are Assembly Languages. These Are Also system oriented that means to write any program in a system that system’s technology must be required and data is non-portable. But they used MNEMONIC words in programs. That means they used a single word instead of more words.

III Generation Languages : In these languages programs are written in general english language. There is no need to know the system technology and the data can be transferred anywhere.

IV Generation Languages : These languages are defined in any one of the above languages. These are also called as packages.

Here I & II Generation languages are called Low Level Languages and III & IV generation languages are called High Level Languages.

For high level languages we have to use translators to translate the source code written in general english language into machine language. These translators are two types.

1) Interpreters
2) Compilers

1)Interpreters : These translators translate the source code step by step into machine language until any error. If there is any error it stops and shows some message. After correction it can continue.
Ex: BASIC, DBase III+, ….

2)Compilers : These translators translate the entire source code into machine language when it is error-free and creates an object file in machine language. If there is any error it shows the list of error. After debugging it creates the object file.
Ex: COBOL, C, C++ and etc