Explain or Discuss function call.






Function call : In order to use functions user need to invoke it at a required place in the program. This is known as the function call. A function can be called by simply using the function name followed by a list of actual parameters, if any, enclosed in parentheses.



Example : 

 
int function mul(int x, int y){
return x*y;
}

int function main(){
int a = mul(10,5);
return 0;
}


Here in the main() program the mul(10,5) is a function call to mul(int x, int y) function.

Recommended Recommends

Comments

Contact Us

Loading...