Introduction to C Programming
1 Introduction to C Programming
C is a general-purpose high level language that was originally developed by Dennis Ritchie for the Unix operating system. It was first implemented on the Digital Equipment Corporation PDP-11 computer in 1972.
The Unix operating system and virtually all Unix applications are written in the C language. C has now become a widely used professional language for various reasons.
- Easy to learn
- Structured language
- It produces efficient programs.
- It can handle low-level activities.
- It can be compiled on a variety of computers.
There is a close analogy between learning English language and learning C language. In learning English language we have to first learn the alphabets used in the language then we combine the alphabets to form words. Then words are combined to form paragraphs.
Alphabets-----à Words-----à Sentences------àParagraphs.
Similarly in learning C language we must first know what alphabets, digits and special symbols are used in C. With the combination of these three, constants, variables and constants are constructed. All these are combined to form Instructions and a group of instructions form a program.
Digits ------------------à Variables -----------à Instructions------à Program.
Special symbols Keywords