Sunday 11 March 2012

Importance Of C

C Importance:

1967
1970
1972
The increasing popularity of C is probably due to its many desirable qualities. It is a robust language whose rich set of built-in functions and operators can be used to write any complex program. The C compiler combines the capabilities of an assembly language with the features of a high-level lan-guage and therefore it is well suited for writing both system software and business packages. In tact. many of the C compilers available in the market are written in C.

Programs written in C are efficient and fast. This is due to its variety of data types 111`1 powerful operators. It is many times faster than BASIC. For example, a program to increment variable iffiin to 15000 takes about one second in C while it takes more than 50 secondsitt interpreter BASIC, There are only 32 keywords and its strength lies in its built-in functions. Several standard func¬:ions are available which can be used for developing programs.

C is highly portable. This means that C programs written for one computer can be run on another with little or no modification. Portability is important if we plan to use a new computer with a differ- nit operating system.

C language is well suited for structured programming, thus requiring the user to think of a problem in terms of function modules or blocks. A proper collection of these modules would make a complete program. This modular structure makes program debugging, testing and maintenance easier.

Another important feature of C is its ability to extend itself. A C program is basically a collection of functions that are supported by the C library. We can continuously add our own functions to C library. With the availability of a large number of functions, the programming task becomes simple.

Before discussing specific features of C, we shall look at some sample C programs, and analyze and understand how they work.

No comments:

Post a Comment