Which function definition will run correctly?

Which function definition will run correctly?

Which function definition will run correctly? mcq and its answer is provided on this page.

Which function definition will run correctly?

Que. Which function definition will run correctly?
a. a)
b. int sum(int a, int b)
c. return (a + b);
d. b)
b. int sum(int a, int b)
f. {return (a + b);}
g. c)
h. int sum(a, b)
c. return (a + b);
j. d) none of the mentioned
Answer: b
Explanation : None.


Comments