Wednesday 11 April 2018

Different Types of functions in C/C++ ?


            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);
 int even(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