The C language has, over the past few years, become one of the most popular programming languages. This rapid popularity of C, because of absolute power and simplicity of the language.
Although it is a high level language, it is often called as middle level language because the programmer has the ability to write machine(hardware) level programs also low level language programming.
History of C:
C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at AT & T’S Bell Labs(USA). C was originally first implemented on the DEC PDP-11 computer in 1972.
Dennis Rithce got C language by inheriting the features of B and BCPL, added some of his own ideas and developed C.
In 1978, Brian Kernighan and Dennis Ritchie produced the first publicly available description of C, now known as the K&R standard.
The UNIX operating system, the C compiler, and essentially all UNIX application programs have been written in C. C has now become a widely used professional language for various reasons −
- Easy to learn
- Structured language
- It is used to solve problems of all possible applications
- It produces efficient programs
- It can handle low-level activities
- It can be compiled on a variety of computer platforms
Facts about C:
- C was invented to write an operating system called UNIX.
- The language was formalized in 1988 by the American National Standard Institute (ANSI).
- The UNIX OS was totally written in C.
- Most of the state-of-the-art software have been implemented using C.
- Today’s most popular Linux OS and RDBMS MySQL have been written in C.
Application Areas Of C:
Although, C is well suited for system programming, C can be used for writting
Ex: Operating Systems
Ex: Compilers, Interpreters, Assemblers
Ex: Edit (DOS), Vi (UNIX), NE (COBOL)
Ex: Telecommunication Software, etc…
It is also used for applications like business systems, animation software,
C can be used to develop any type of application that is why C is also called General Pupose Language
A C-program can vary from 3 lines to millions of lines and it should be written into one or more text files with extension “.c”; for example, hello.c. You can use “vi”, “vim” or any other text editor to write your C program into a file