CSE101 Function
CSE101 Function
By
Pundreekaksha Sharma
Assistant Professor
1
Function declaration return_type function_name (argument list);
2
Function call function_name (argument_list)
3
Function definition return_type function_name (argument list)
{function body;}
Library functions are the inbuilt function in C that are grouped and placed at a
common place called the library. Such functions are used to perform some
specific operations. For example, printf is a library function used to print on the
console.
include stdio.h in our program which is a header file that contains all the library
4 stdlib.h This header file contains all the general library functions
like malloc(), calloc(), exit(), etc.
5 math.h This header file contains all the math operations related
functions like sqrt(), pow(), etc.