Wednesday 20 July 2011

design

C is an imparative(procedural) system implemetation language. It was designed to be compiled using a relatively straightforward compiler, to provide low-level access to memory, to provide language constructs that map efficiently to machine instructions, and to require minimal run time support C was therefore useful for many applications that had formerly been coded in assemblylanguage
Despite its low-level capabilities, the language was designed to encourage cross platformprogramming. A standards-compliant and portably written C program can be compiled for a very wide variety of computer platforms and operating systems with few changes to its source code. The language has become available on a very wide range of platforms, from embedded micro controller to supercomputer

structure of the c rogram

Every c program consists of one or more modules called functions.One of the functions must be called main.The programing will always begin by executing the main function.Any other function definition must be defined separately,either ahead or after the main.each function must contain :
                                                                  
  1.  A function heading,which consists of function name followed by an optional list of arguments,enclosed in parantheses.
  2. a list of argument declarations,if arguments are included in the heading.
  3. a compound statement,which comprises the remainder of the function.

Indroduction to c

c is a general purpose,structured progrmming language.Dennis Ritchie at the Bell laborataries in USA originally developed c in the 1970s.c is the result of the development process that started with an older language called BCPL developed by Martin Richards,and it influenced a language called B,which was invented by Ken Thomson.b led to the development of c in 1970s