Friday, June 28, 2013

Introduction to C

What is C?

C is a programming language that allows a programmer to communicate with the computer. C is a flexible language and adaptable language, and it is the most used languages in the world. It is a general purpose programming language and is more convenient to use than many powerful programming languages. 

C is designed and implemented on Unix Operating Systems, by Dennis Ritchie. In today's world, there are many high level languages to choose, but C takes the top position of all because of its simplicity and flexibility.

Why to use C?

As we have already said, C is a simple and flexible language. Because of its simplicity, there are many compilers available in the market to develop C code. Also C language doesn't put any constraints on you while programming. Hence many professional programmers use C as a language to develop programs. 

C is also a portable language. It means, a C code written on one computer can be compiled and executed on other computers also with a little or no modification. 

C is modular. It means we can write routines called functions where in a function is designed to a certain task. These functions can be reused in other applications or programs.

Moreover for a beginner in programming, C is the best language to be known, as it doesn't have much keywords or the reserved words and also it doesn't have much constraints.

Note: A keyword is a predefined word for a purpose by the language. We will learn more about it later.

How C works?

Generally the language understandable by the computer is machine code and the language used by the human beings is our communicative language i.e., English. In order to communicate with the computer, we need a medium. One of such a medium is C language. C acts as a bridge between the user and the computer. C has its own compiler which converts the program we have typed in our own language to the machine understandable language and gets the things done. 

Generally every program has two parts : data and instructions. As the computer cannot organize these parts. It is the burden on the user to organize them. But C language takes the responsibility and organize into series of bytes and makes them useful data.