Search This Blog

Wednesday, 19 December 2012

FUNCTION


Function:

A function is a self-contained block of statements that carries out specific,
Well –defined task or operation.
For example printf () function is used to display on monitor

Functions can be categorized into two ways


1.user defined function
2.pre defined function



Pre-defined functions:  The functions  which are defined  already by language devloper  is also called as library  functions. These functions are stored in library files and cannot be modified by the programmer.
Eg:scanf(),printf(),squart(),strlen(),strcat();
UserDefined Functions: The Functions which are defined by  user  is  called    User Defined functions .
These functions allow programmer to define their own  functions according to requirement of the program.

Ex:  sum(),display()

1 comments:

Anonymous said...

very good

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hostgator Discount Code