0

What do you mean by call?

19th Oct 2016, 2:54 PM
Abhay Selva
Abhay Selva - avatar
3 Antworten
+ 3
Calling is the term given when we "call" a function. Essentially, calling just means "run that function". E.g. int sum(int a, int b) { return a + b; } int main() { cout << sum(5, 10); return 0; } Here we are calling the "sum" function, and passing two integers through so that it can return the sum.
19th Oct 2016, 3:04 PM
Cohen Creber
Cohen Creber - avatar
+ 6
Calling a function is using it, as opposed to defining it. In Cohen's example, this: int sum(int a, int b) { return a + b; } is a function definition, and this: sum(5, 10) is a call to it with the arguments 5 and 10.
19th Oct 2016, 3:33 PM
Zen
Zen - avatar
0
calling a function simply means using the function.
21st Oct 2016, 6:17 PM
arpit yadav
arpit yadav - avatar