User:SHRIKANT GENLDE

= FUNCTIONS IN C PROGRAMMING = A BRIEF OVERVIEW

A function is a program setup segment that carries out some specific, well defined task, Every C program consists of one or more functions. There is always a main function. The execution of program starts from the execution of instructions in main function.

There is librabry functions in C language which consists lots of standard predefined funtctions.

DEFINING A FUNTION

A C function can be defined by including the argument declaration in first line and the body of the function.

In general terms, the first line can be written as

data-type name ( type 1 arg 1, type 2 arg 2, . . ., type n arg n)

where data-type represents the data type of the item that is returned by the function, name represents the function name, and type n represents the data types of argument arg 1, arg 2, arg n.

ACCESSING A FUNTION

A function can be accessed by specifying its name, followed by a list of arguments enclosed in parentheses and separated by comma.