programming structure
documentation sectionlink section
definition section
global declaration section
main()
{
dilatation part;
executable part;
}
subprogram section
function 1
function 2 (user defined functions)
.
.
.
function n
DOCUMENT SECTION:
here we use comment lines to describe the program briefly
there are two types of comments used in c they are
1.// these are used as line comments
2.*/ these are used as full comments*/
LINK SECTION:
here we will link header files ex: #include <stdio.h> or #include "stdio.h"
DEFINITION PART:
here we use user defined definitions ex: #def con 2 and # is known as pre processor.
GLOBAL DECLARATION:
here what we defined they can be used through out the program
DECLARATION PART:
it includes declarations of variables declaration should be always at the beginning part in c
EXECUTION PART:
here the code written is executed
SUB PROGRAM PART:
here function definitions are written how ever they can even written in the program itself
No comments:
Post a Comment