Types
of Functions
There
are two types of functions namely :
1.
Library
Functions
The
declaration of library function is in the header file specified at the
beginning of the program.
The
definition is in a library file that is automatically linked to the
program
Declaration
and definition are not required. We will only call the function. Example :
clrscr ( )
2.
User Defined Functions
Declaration
and definition are part of the source file (*.cpp file).
Function definition and
declaration have to be written by us.
Example of user defined
function is the add function that we saw in
the previous section.
The next section deals with : Function Overloading
or
you could go back to Contents
Copyright © 2002 Sethu Subramanian All rights reserved.