Which function definition will run correctly?
Answer: B
Correct answer: int sum(int a, int b) {return (a + b);}
A function definition must have its body in braces. The forms without braces are not definitions at all. (The third also uses the old K&R parameter style but omits the type declarations that style requires.)
Please log in or register to report this question.