Sunday, 7 September 2014

Structure of a C Program

C Program is the collection of one or more function & Every function is the collection of statements & performs some specific task .


Comments

Pre-processor directives
 
Global variables

main(   )   Function
{

local Variables

statements
.................... .
.................... .
}

func1(   )

{
local Variables

statements
.................... .
.................... .
}

We can use function as per our need ,when we write a code for a software , there are lot of function are taken. we talk about function in next posts.

 

Comments

We can place the comments anywhere in the program , these are use for the documentation purpose .
comments are enclosed between delimiters /*

Pre-processor directives

Pre-processor directives are processed through preprocessor  before the c source code passed through compiler.We basically use the #include & #define .

0 comments:

Post a Comment