Saturday, June 7, 2008

C FOR ENGINEERS by R.G.Salokhe

The C language was created, designed and written by Dennis Ritchie in 1972 at Bell
Laboratories. C was designed to run under UNIX operating system on the DEC, PDP11
computer.
Features of C :-
a) Portability :- The best feature for which C gained popularity is the portability of
code. The C language programs could be run on variety of computers with a little or no
change in the source code. Which means the C language code can be used under various
operating systems.
b) Efficiency :- The C language is efficient in two ways I) The source code is very
compact ii) Memory Management through C is very efficient.
c) Modularity :- C allows separately compiled modules which can be linked together.
The programs can be written in well structured manner. C is a language of functions.
Various modules are written as functions.
d) Pointer Operations :- C is very powerful in pointer operations. Pointers can be set to
various data types as well as to funtions, structures etc. Arrays can be manipulated with
the help of pointers.
e) Flexible level :- C programs can be written with the features of high level languages
as well as that of low level languages. C thus fits in between the two. C is not a ‘strongly
typed’ language. There are no bounds to number of array elements.
f) Case Sensitivity :- C is case sensitive. Which means the upper case and lower case
characters are treated differently in variable names, function names etc.
ANSI C :- ANSI stands for American National Standard Institute. The ANSI set a
standard for C language in 1990. This was for the various compiler developers to use this
standard. However many compilers are not strictly adhering to the ANSI standard.
Structure of C Programs :- Since C is a language of functions, let us understand
what a function means;
A function is an entity which accepts some input, processes the same and gives the
output. The type of function is determined by its output. The function can be used as its
output.

Download:

http://rapidshare.com/files/85649800/cbook.pdf

No comments: