A function is a self-contained block of statements that perform a particular task.
Standard Function
User Defined Function
These are pre-defined functions that are already present in the compiler and cannot be edited.
Examples: printf
and scanf
These functions are defined by the user.
#include<stdio.h>// Functionint DoubleTheNumber ( int number ){int temp = number + number;return temp;}int main() {// calling functionint val = DoubleTheNumber(10);printf("The number is : %d\n", val);return 0;}