Wednesday 12 December 2012

Introduction to C programming

Programming is a practical subject you will need to  write, type in, correct and run programs.

The C programming language was called "C" because many features derived from an earlier compiler named "B", which in turn was developed from BCPL. BCPL was a simpler version of a language called CPL, which owed many of its features to a language called Algol 60. The names most associated with this early development of C were Ken Thompson and Dennis Ritchie.
  • The main features of C are:Simplicity - C has a relatively small number of components, although some programmers say it has too many!
  • Efficiency - C has commands that are directly oriented towards the low level instructions, and can often produce very fast and small code. When C was developed, computers typically had 8KB of memory (8192 bytes), and so code size efficiency was a great concern.
  • Portability - C and UNIX are available on virtually every platform
C's popularity was due to two major factors.
  • The first was that the language didn't get in the way of the programmer. He could do just about anything by using the proper C construct. (As we will see, thi flexibility is also a drawback, as it allows the program to do things that the programmer never intended.)
  • The second reason that C is popular is that a portable C compiler was widely available. Consequently, people could attach a C compiler for their machine easily and with little expense.
Computer programs consist of two main parts: data and instructions.
How can you learn C
There is only one way to learn how to program and that is to write programs. You'll
learn a lot more by writing and debugging programs than you ever will by following up this blog , will break down the c and its concept for you to understand it better.

No comments:

Post a Comment