My dear Students,
First of all you should have a clear idea about certain things before learning the programming software language C and C++.
That is the Memory , Variable , Type
For time being have it in your mind that variable is a place name or location name in the memory unit where you can store or place a value.
Also think that memory is a serial or cluster of places left in computer memory unit and imagine as a pigeon hole with particular name for every hole in the stack.
As for as type you remember is a word which states the category which it belongs.
Now we will come to certain peculiar things and know about that.
There is a similarity between learning English language and the language C .
Some alphabets join and form word in English
Like wise in C also
Alpha words sentence paragraph statements. / in English
Alpha,Symbol,Numbers Keyword,Constant,Variable Instruction Program / in C
Now what do you have to remember in your mind strongly is given below.
Every language has its own Style and Rule (limitation and restrictions) . C also have . the way of writing is called Syntax.
As language English have C also having words which has its own meaning and usage.
Also have Keyword in C , Reserve words, C Library , Operator , Operations and Functions. And Instruction.
With all these we are going to write the C program that has to be understood by the computer and accept the input data and it has to process it and to give out result .
To do this the computer needed to have 1. Hardware 2. Assembly language 3. Compiler language separate for each Software to be complied and the Operating system language to communicate between the peripheral units of the computer and processing unit . With the usage of complier we have to run the program which we have written in C language and to create Object program and than create executable programs and then run the executable program. Then only we will get the result of the program either in display unit or in printer unit.
Hardware
This cannot directly accept data which you feed. These are physical electronic component. The computer memory is also one such made out of silica sand grains that will easily energies by the electrical pulse . The electro pulse are signal of electrical produced or occur at a fraction of seconds. These pulse will store 0 and 1 in memory hole cluster in each separately.
As I have mentioned remember that 0 and 1 are nothing but if pulse is stored it is 1.
If pulse is not stored then in is 0. That all. Now you may be clear how the data stored as binary form in the memory holes ie. In Memory cells.
As you all know binary system I need not explain in detail. If at all needed refer Binary Teaching of Guru in other site.
What is C complier doing really ?
The complier is a developed software program established by loading it in the computer memory storage in which you are going to write C language programs.
This complier will understand the C program because in this software the things belonging to C language alone like Keyword in C , Reserve words in C , C Library , Operators in C , Operations and Functions in C. and the Instruction in C were already loaded in it.
So why when we write C program and compile it is getting compiled and an object program being created by C complier if there is no error or void in return functions or other wise it will display error. Then we will correct it and then run to develop object program for our program written in C language using all its syntax(rule) and built in function and reserve words , constants and variables of various types available in C.
After successful run the complier creates the object program for our program written in C language with the dot obj extension file name. If we run this object program the C complier will create the executable program with the name we have given for our C program with an extension name of dot exe.
Example: If we wrote a program named mataddition. Then the complier will create after successful run a complied file named mataddition.obj , This is object program. If we run the program mataddition.obj it creates our needed executable program in C with an dot exe named file . It will have the name mataddition.exe . When ever we run this executable program it will ask input if we define in get functions in our C program and gives out the result as visible display in monitor or in print out .
Therefore our task to write a C program is completed in successful manner.
First of all you should have a clear idea about certain things before learning the programming software language C and C++.
That is the Memory , Variable , Type
For time being have it in your mind that variable is a place name or location name in the memory unit where you can store or place a value.
Also think that memory is a serial or cluster of places left in computer memory unit and imagine as a pigeon hole with particular name for every hole in the stack.
As for as type you remember is a word which states the category which it belongs.
Now we will come to certain peculiar things and know about that.
There is a similarity between learning English language and the language C .
Some alphabets join and form word in English
Like wise in C also
Alpha words sentence paragraph statements. / in English
Alpha,Symbol,Numbers Keyword,Constant,Variable Instruction Program / in C
Now what do you have to remember in your mind strongly is given below.
Every language has its own Style and Rule (limitation and restrictions) . C also have . the way of writing is called Syntax.
As language English have C also having words which has its own meaning and usage.
Also have Keyword in C , Reserve words, C Library , Operator , Operations and Functions. And Instruction.
With all these we are going to write the C program that has to be understood by the computer and accept the input data and it has to process it and to give out result .
To do this the computer needed to have 1. Hardware 2. Assembly language 3. Compiler language separate for each Software to be complied and the Operating system language to communicate between the peripheral units of the computer and processing unit . With the usage of complier we have to run the program which we have written in C language and to create Object program and than create executable programs and then run the executable program. Then only we will get the result of the program either in display unit or in printer unit.
Hardware
This cannot directly accept data which you feed. These are physical electronic component. The computer memory is also one such made out of silica sand grains that will easily energies by the electrical pulse . The electro pulse are signal of electrical produced or occur at a fraction of seconds. These pulse will store 0 and 1 in memory hole cluster in each separately.
As I have mentioned remember that 0 and 1 are nothing but if pulse is stored it is 1.
If pulse is not stored then in is 0. That all. Now you may be clear how the data stored as binary form in the memory holes ie. In Memory cells.
As you all know binary system I need not explain in detail. If at all needed refer Binary Teaching of Guru in other site.
What is C complier doing really ?
The complier is a developed software program established by loading it in the computer memory storage in which you are going to write C language programs.
This complier will understand the C program because in this software the things belonging to C language alone like Keyword in C , Reserve words in C , C Library , Operators in C , Operations and Functions in C. and the Instruction in C were already loaded in it.
So why when we write C program and compile it is getting compiled and an object program being created by C complier if there is no error or void in return functions or other wise it will display error. Then we will correct it and then run to develop object program for our program written in C language using all its syntax(rule) and built in function and reserve words , constants and variables of various types available in C.
After successful run the complier creates the object program for our program written in C language with the dot obj extension file name. If we run this object program the C complier will create the executable program with the name we have given for our C program with an extension name of dot exe.
Example: If we wrote a program named mataddition. Then the complier will create after successful run a complied file named mataddition.obj , This is object program. If we run the program mataddition.obj it creates our needed executable program in C with an dot exe named file . It will have the name mataddition.exe . When ever we run this executable program it will ask input if we define in get functions in our C program and gives out the result as visible display in monitor or in print out .
Therefore our task to write a C program is completed in successful manner.