Thursday, December 5, 2013

INTRODUCTION TO C LANGUAGE | 1ST SESSION

Assalam~O~Alaikum Friends Today is the first session of the c language so i will tell all the basics of c & other.


What is C & its uses ?

C is called a higher level compiler language which can be used for general purpose programming like for writing small  programs or to write complex application .
The C language has been equipped with features that allow programs to be organized in an easy and logical way.
C allows meaningful variable names and meaningful function names to be used in programs without any loss of efficiency and it gives a complete freedom of style .
C has a set of very flexible loop structure & clean ways of making decisions & this provide an excellent basis of controlling the flow of program .
C allows things which are disallowed in other languages: this is no defect but a very powerful freedom .
C tries to make the best of a computer by linking as closely as possible to the local environment .

Now i will tell you some characteristics of C :.


Characteristics of C  :

Small size
Extensive use of function calls
Loose typing -- unlike PASCAL
Structured language
Low level (BitWise) programming readily available
Pointer implementation - extensive use of pointers for memory, array, structures and functions .
It has high-level constructs.
It can handle low-level activities.
It produces efficient programs.
It can be compiled on a variety of computers.


Basic C Program structure :

Preprocessor Commands
Type definitions
Function prototypes -- declare function types and variables passed to function.
Variables
Functions


No comments:

Post a Comment