Functions: Basics - definition - Elements of User defined
Functions - return statement, Function types, Parameter
Passing Techniques, Function returning more values -
Passing Array to Functions - Recursion - Storage classes.
,Functions
⚫ divide a large program into the basic building
blocks
⚫ The set of programming statements enclosed
by {}
⚫ A function can be called multiple times to
provide reusability and modularity
,Advantage of function
⚫ We can avoid rewriting same logic/code again
and again in a program.
⚫ We can call C functions any number of times
in a program and from any place in a
program.
⚫ We can track a large C program easily when
it is divided into multiple functions.
⚫ Reusability is the main achievement of C
functions.
, Type of functions
Type of function