Functions and Arrays
Functions and Arrays
Functions and Arrays
programming:
Standard Library Function
User Defined Functions
Standard Library Function
The standard library functions are built-in
functions in C programming to handle tasks
such as mathematical computations, I/O
processing, string handling etc.
These functions are defined in the header file.
#include <stdio.h>
void functionName()
{
……..
}
int main()
{
…..
functionName();
……
……
}
How Functions works in C?
functionName();
inside the main function, control of the program jumps
to
void functionName()
And, the compiler starts executing the codes inside the
user-defined function.
The control of the program jumps to statement next
value.
Functions with no argument and with return
value
Functions with argument and with return
value
Functions with argument and no return value
Arrays in C Language
An array is a collection of data that holds
fixed number of values of same type.
For Example:
element, (n-1) index is used.
Thank You