Examveda

What is the output of the following code: int max(int a, int b) { return (a > b) ? a : b; } int main() { cout << max(5, 5); } in C++?

A. 10

B. 0

C. 5

D. Compilation error due to ambiguous function call

Answer: Option C


Join The Discussion

Related Questions on Functions and Procedures in C plus plus