Functions - Calling a function

In the previous post we had written a definition for Add() function, now will see how to make use of it.To make use any of function/to see the action of a function we have to call or invoke a function from other function. For example

Display() 
{
printf("\n Wel come to C language");
}

main()
{
Display();
}

In the above program definition for Display() is written. In main function the line,

          Display();

means the main() is calling a function Display(). When this line is executed it transfers the control of execution to memory location where Display() is stored and it executes the body of function and then returns to calling function main() and continues with remaining lines of main(). In this calling function is main() and Display() is called function.



Comments