Overview to c

Why use C?

C has been used successfully for every type of programming problem imaginable from operating systems to spreadsheets to expert systems – and efficient compilers are available for machines ranging in power from the Apple Macintosh to the Cray supercomputers. The largest measure of C’s success seems to be based on purely practical considerations:

  1. the portability of the compiler;

  2. the standard library concept;

  3. a powerful and varied repertoire of operators;

  4. an elegant syntax;

  5. ready access to the hardware when needed;

  6. and the ease with which applications can be optimized by hand-coding isolated procedures

C is often called a “Middle Level” programming language. This is not a reflection on its lack of programming power but more a reflection on its capability to access the system’s low level functions. Most high-level languages (e.g. FORTRAN) provide everything the programmer might want to do already build into the language. A low level language (e.g. assembler) provides nothing other than access to the machines basic instruction set. A middle level language, such as C, probably doesn’t supply all the constructs found in high-languages – but it provides you with all the building blocks that you will need to produce the results you want!

Uses of C

C was initially used for system development work, in particular the programs that make-up the operating system. Why use C? Mainly because it produces code that runs nearly as fast as code written in assembly language. Some examples of the use of C might be:

  1. Operating Systems

  2. Language Compilers

  3. Assemblers

  4. Text Editors

  5. Print Spoolers

  6. Network Drivers

  7. Modern Programs

  8. Data Bases

  9. Language Interpreters

  10. Utilities

In recent years C has been used as a general-purpose language because of its popularity with programmers. It is not the world’s easiest language to learn and you will certainly benefit if you are not learning C as your first programming language! C is trendy – many well established programmers are switching to C for all sorts of reasons, but mainly because of the portability that writing standard C programs can offer.

A Brief History of C

C is a general-purpose language which has been closely associated with the UNIX operating system for which it was developed – since the system and most of the programs that run it are written in C.

Many of the important ideas of C stem from the language BCPL, developed by Martin Richards. The influence of BCPL on C proceeded indirectly through the language B, which was written by Ken Thompson in 1970 at Bell Labs, for the first UNIX system on a DEC PDP-7. BCPL and B are “type less” languages whereas C provides a variety of data types.

In 1972 Dennis Ritchie at Bell Labs writes C and in 1978 the publication of The C Programming Language by Kernighan & Ritchie caused a revolution in the computing world.

In 1983, the American National Standards Institute (ANSI) established a committee to provide a modern, comprehensive definition of C. The resulting definition, the ANSI standard, or “ANSI C”, was completed late 1988.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s