used by new
ones that
were just
introduced
to the world
of computers)
(This was the
Language that
was used to
make the
software that
were business
oriented)
(Used for
scientific formula
etc)
You don\u2019t really need to actually learn there languages I am just telling you this so that you have an idea that why C and C++ were there in the first place. Anyway let us continue\u2026..
So all these were different programming languages and when I say different, I mean
really really different. There was no way that one could make a desired software, like
basic could not make formula. In short it was always that one or the other thing was
missing so they combined the languages and make it one language and named it.
Well take a guess what they named it\u2026\u2026..it was calledC. P.L and B.C.P.L. Name
So in 1972 Dennise Rietche invented\u201cC\u201d a high language that we now use .(High
level language is t that such a language is used not only to make simple programs but
also operating systems like WINDOWS and UNIX it is called high level language
because it at a higher level then COBOL and Pascal etc which are calledba se
IN this language that we can build any and all the software you can imagine. Not
only softwares but even virus if you really put your head to it I mean really hardcore
programming. So read and work dedicatedly (WORK HARD!!!).
Well now I am going to tell you about the properties of the C language, these are not
basically used for making programs but they are important, So that we can
understand why and how does\u201cC\u201d works and what are the properties that make it
such a successful language.
3. Portable
4. Functional
5. Memory Management
The C language is a structured language, what that means is that it has a definite
structure The code can not just be written anywhere in the program window.
There is a predefined structure which we have to follow in order to achieve our
desired result.
Now let us see an example don\u2019t get scared we have not started making programs
as yet and u don\u2019t need to think about wt these commands do. I have explained
the command in details later in the book it is just that I want you to see the
structure of a program.
\u201cLet the program be a criminal and the brackets be a jail in order to keep the
criminal calm and working we need the jail if there is no jail the criminal will not
be under control and not as we want them to\u201d
Same is with the programs, if the program is in brackets then it will work as we
want it to or else it will not work.
The language is called a procedural language as there is a definite procedure to
follow
See the \u201cVOID MAIN\u201d command I can\u2019t just write in just anywhere in the
program
It is supposed to be in the beginning and it should be in the beginning, for the
program to work properly.
the point is that how does the computer\u2019s compiler know whatp ri n tf command
means, and how does it know that hello user is to be shown onto the screen. The
answer is simple thatp ri n tf is a command and it tells the computer\u2019s compiler
that the statement in the brackets is to be printed. Now the question rises, how
does it tell this to the computer\u2019s compiler? The answer is that there is a complete
code for every command (commands like printf) in the\u201cC\u201d language. They are
per-build and are saved in small modules.
These modules are stored in a HEADER FILE (we will do the header file later in
the book)
To understand this think of header file as a box and commands as small cubes
that are placed in the big box. We pick them out as we need them.
If I confused you let us take it once more, well it is obvious
that the computer can not understand any thing unless and until the word or
command has been completely defined in the system. So there must be some
code that tells the computer what to do when thep rin tf command is given.
In this case ofp ri n tf it tells the computer to print on the screen the text that is
written after the commandp rin tf .
Would it not be stupid to write 4 pages of coding just to tell the computer to
print something, and then just one line that we actually have to show? It would
be something like this
Void main()
Leave a Comment