Vidyalelo
C++ Programming · Q24

Functions and Procedures in C++

Programming · C++ Programming · question 24

Q24

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
Answer
D.
Compilation error due to ambiguous function call

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board