Sunday, 5 June 2011

CHAPTER 1: Introduction to Programing.

What is a programing language?
Programing language for example c is a language like any other language (English, Hindi, etc.).
The difference is that it is a computer language that means that it can be understood by a computer.
Now in human language when somebody asks us to fetch a glass of water he may say-
Father: Ram, fetch me a glass of water.
Son: yes father.
Similarly in a computer language the user who is using the computer may ask the computer to do things like when you click on “my computer” it opens up a explorer window which shows a list of drives like (c:\, D:\).
What actually happens is that everything we do with mouse or keyboard on a computer leads to some instructions getting executed on the computer.
So when you click on my computer it actually runs a code or instruction in the back ground which means ‘open my computer’
But since we do a lot of fast activity on computers we would not like to type codes for everything all the time. Hence we use programs (applications) that understand our mouse click or our keyboard input and performs that task that we want it to do.
Hence to have such applications first we need to create a program to do so.
C is one such language that provides us with this ability.
We can write a program in c and then execute (run) the program on a computer to see what it does.