Professional Documents
Culture Documents
Functions in C
Functions in C
Function is small manageable and function unit of a program which performs certain
task in the program. Functions are used to divide a large C program into smaller
parts.
Syntax of it goes like this:
*The two types of function are: Library Function and User-defined Function
Function Prototype
Function prototype is the function declaration w/o the body before the main( )
function.
Ex.
Recursive Function
Recursive function is the function that calls itself again and again. The best example
of recursive function is the factorial program.