Beruflich Dokumente
Kultur Dokumente
Name(AIGIRS)
of Institution
Introduction to
C Functions
Introduction AIGIRS
Name of Institution
Standard Library
Functions
Standard Library functions-Examples AIGIRS
Name of Institution
User Defined
Functions
User Defined Functions AIGIRS
Name of Institution
Note : The return statement forces the function to return immediately though
function is not yet completed
Syntax for Declaration/DefinitionName of Institution
AIGIRS
Example to understand User Defined functions AIGIRS
Name of Institution
Rules of Writing Function in C Programming AIGIRS
Name of Institution
Rule 4. Any function can be called from any other function.( main also )
Rules of Writing Function in C Programming AIGIRS
Name of Institution
Rule 6. The order in which the functions are defined in a program and
the order in which they get called need not necessarily be same
Rules of Writing Function in C Programming AIGIRS
Name of Institution
Function accepts argument and it return a value back to the calling Program thus it can
be termed as Two-way Communication between calling function and called function.
Type 1 : Accepting Parameter and ReturningName AIGIRS
Valueof Institution
Type 2 : Accepting Parameter and Not Returning Value
Name AIGIRS
of Institution
1. Function accepts argument but it does not return a value back to the calling
Program .
2. It is Single ( One-way) Type Communication
3. Generally Output is printed in the Called function
4. Here area is called function and main is calling function.
Type 2 : Accepting Parameter and Not Returning Value
Name AIGIRS
of Institution
This method copies the actual value of an argument into the formal parameter of
the function. In this case, changes made to the parameter inside the function
have no effect on the argument.
Call by Value AIGIRS
Name of Institution
Recursion
Recursion in C AIGIRS
Name of Institution