Tuesday 26 March 2019

Structure of C Language program

Structure of C Language program

1 ) Comment line
2) Preprocessor directive
3 ) Global variable declaration
4) main function( )

{
Local variables;
Statements;
}
User defined function
}
}

Comment line

It indicates the purpose of the program. It is represented as
/*……………………………..*/
Comment line is used for increasing the readability of the program. It is useful in
explaining the program and generally used for documentation. It is enclosed within
the decimeters. Comment line can be single or multiple line but should not be
nested. It can be anywhere in the program except inside string constant & character
constant.

0 comments:

Post a Comment