Include section or hader section
In this section the header files are included Example - #include #include etc
Global declaration section
In this section the user has to declare the variables which are common to both main block and function section)this is an optional section
main() this function must be present in all programs. The executon of the program starts from this fuction
local declaration
section in this section the user to declare the variables which are local to the main block
Statement in this section the user can write valid c statement to solve the problem
User defined function section:this is anoptional section. the section is used to write sub-programs by the user
exampleTo find the square of anumber
No comments