Tuesday, 5 April 2011

sample program 1

// print a message

                       main( )
                     {
                           
                       /*.........printing begins.......*/
                               printf("hi how are u? ");
                       /*..........printing end..........*/
                     
                       }



OUTPUT:
                 
                hi how are u ?


 

c-programing structure

Documentation Section
__________________________________________________________________

Link Section
__________________________________________________________________

 Definition Section
__________________________________________________________________

global deceleration section
__________________________________________________________________ 

main ( ) function section
__________________________________________________________________

{
       *declaration part
       *executabel part 
 }
__________________________________________________________________

Sub-program section
        function 1
        function 2
        function 3
              -                                                     (user-defined functions)
              -
        function n