Basic Stracture of C
Basic Stracture Of C
[1] Documentation Section:It is the part which consist of a set comment lines giving the names of the program,the author and other details,which the programmer would like to use later.
[2] Link Section:This section provides instrcutions to the compiler to link functions from the system library.
[3] Defination Section:Defines all the symbolic consant.
[4] Global Variable Declaration Section:The variables defined in this section are used all over the programme.all the user defined function are defined in this region.
[5] main() Function Section:Every C programme must have main part.This section have two parts decleration section and executable part.The decleration part declares all the variables that are to be used in executable part.And the executable part must cointain one sentence.This two part start with opening brace and end with closing brace.
[6] Sub Program Section:This section cointains all the user-defined functions that are called in the main section.
******REMARKS******
[1] All the statments in the decleration and executable section end with a semicolon(;).
[2] All sections,except the main function section may be absent if they are not required.
Video Tutorial:
Comments
Post a Comment