Function types
There are two types of functions
which are as follow:
1. User-defined
Functions
2. Built-in
Functions
User-defined
function
User-defined function
is a function that is defined by the user. A program may have many user-defined
functions or may not have user-defined functions.
Example:
int odd(int);
Built-in
functions
Built-in function
is a function which already exists in any programming language.
It is also called
as library function.
Example:
cin>>,
cout>>
No comments:
Post a Comment