Feed Headline Animator

What is function, discus its types in C language

Function: -

A function is the collections of statements, which are used for any specific task.
Types of function: - There are two types of function in C language.
(1) Built in function
(2) User define function

(1) Built in function: -

Those functions which are already the parts of C language. The compiler already has known these functions. These functions are called built in functions. A built in function is also called a library function, a system defined functions.
For example
Scanf ( ), printf ( ), gets ( ), puts ( ), sin ( ), cos ( ) etc.

(2) User define function: -

These functions which a user create by it self and are not the part of the library file, are called user defined functions. These functions can only be use with in that program in which these are created and cannot in other program.
For example
Factorial of a number etc.


Posted by: Wasim Javed

No comments:

Post a Comment