Function:-
A function is a sub-program or set of
instructions, that performs a specific task and can be processed independently.
When the program passes control to a function, the control to the instruction
following the calling instruction.
The most important reason to use
functions is to make program handing easier as only a small part of the program
is dealt with at a time.
Advantages of using function:-
The following are some advantages of
using functions:-
The functions
are easier to write, understand and debug.
A function can
be shared by other programs by compiling this function separately and loading
and linking them together.
Reduction is size of program due to program code of
a function can be used again and again, by calling it.
Great post
ReplyDeleteThanks Mala..
Delete