Monday 20 August 2012

Starting of C



                                                      Before starting programming in C  at first we will  go for the general structure of a C program.In C a program unit can be compiled separately and later on linked together ,without having to re-compile them to make a single executable module.
Basic structure of  C Program
                                             
        Pre-Processor directives
       Global variable declarations
       Function defining statement
       {
               Local variable and function declerations
               Executable Statements
        }

The C compiler takes the source code as its input and if there are no error in the source code , it produce object code of the program which is saved in a disk  file with extension .obj . This process of translation is popularly called compilation. Different object code and the system library are linked together to form executable code known as run file.

No comments:

Post a Comment