A Function is a self contained sub program that is meant to do some well defined task.
A function is also called procedure,subroutine,subprogram.It is suitable set of instruction which performs a task is called function.In another word small module of program is called function.
* Type of function
There are two type function
1.)Inbuilt/predefined/library function
printf()
scanf()
clrscr()
getchar()
getch()
putchar()
strcmp() etc...
2.) User defined function:- The user can create there own function for performing any specific task.
Three thing required to create user defined function are:-
a.) function definition
b.)function prototype
c.)function call
A function is also called procedure,subroutine,subprogram.It is suitable set of instruction which performs a task is called function.In another word small module of program is called function.
* Type of function
There are two type function
1.)Inbuilt/predefined/library function
printf()
scanf()
clrscr()
getchar()
getch()
putchar()
strcmp() etc...
2.) User defined function:- The user can create there own function for performing any specific task.
Three thing required to create user defined function are:-
a.) function definition
b.)function prototype
c.)function call
Comments
Post a Comment