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.

Author: Tanmay Chakrabarty

Tanmay Chakrabarty is a former CSE student, currently working as a Senior Software Engineer with 5+ years of experience in the field of Web Application development in PHP+MySQL platform with strong skills in Javascript, JQuery, JQuery UI and CSS. He tries to write notes every week but fails due to heavy loads of duty.

Recommended Recommends

Comments

Contact Us