• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
This is a Group of section that I have written about the C language I promise you that
this is the simplest way you will have to learn the C language.
I have divided it into number of sections each explained to the very basic. So if you
find this tutorial easy to learn then mail me atkn o w led g e_f o rall@h o t mail. c o m and I will
send you the next the part this is completely free. One should not charge for knowledge.
I hope you all like it
IN the beginning there were basically three languages that were used to make
computer based application (you don\u2019t need to memorize them just knowledge sakes)
B.A.S.I.C----- ----Beginner All Purpose Symbolic Instruction Code. (This was

used by new
ones that
were just
introduced
to the world
of computers)

C.O.B.O.L------- Common Business Oriented language.

(This was the
Language that
was used to
make the
software that
were business
oriented)

F.O.T.R.O.N-- --- Formula Translator.

(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

it something nice no combine the the programming language and say it
COMBINED PROGRAMMING LANGUAGE
C.P.L- --- - Combined Programming Language (silly isn\u2019t it) and another one
B.C.P.L-- -- Basic Combined Programming Language

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

languages
).
Fact File\ue000
\ue000\ue000
\ue000 (The original C was made in UNIX the UNIX then was rewritten in
the language C {that is how amazing the language is it actually is it\u2019s the mother
of its father (WERID!!!!!)
DefinitionUNIX-- -- This is an operating system just like WINDOWS
NOW WHAT DO YOU SAY WE START A LITTLE
ABOUT \u201cC\u201c

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.

1. Structure And Procedure Oriented
2. Modular And Flexible

3. Portable
4. Functional
5. Memory Management

Let us see the properties in details
1. Structure And Procedure Language

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.

Void main()
{Printf (\u201chello user\u201d);
}Have a look at the yellow part above it is called the brackets
Now to explain this let us take an example

\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.

2. Modular And Flexible
DefinitionCo mpiler --the one that converts the C language to computer
language and the computer language back to the high level language)
Ok let us look at the command
Printf (\u201chello user\u201d)
Let me speak in a very simple term what is a module, we wrote the command
Printf (\u201chello user\u201d) and this will print hello user on then computer screen. But

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.

So all we have to do is write thep ri n tf and the computer prints what ever
follows it.

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 .

THE CODE TO FOR THE PRINTF STATEMENT MAY BE 4 PAGES LONG.
This code was written by the programmers of C language.
Imagine that we have to write this code every time we are going to print
anything. Then the program would be every tiring, long and confusing.

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()

{Blah Blah\u2026 (CODE FOR THE PRINTF STATEMENT)\u2026.blahhhhhlh
(\u201chello user\u201d);
}
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...