Q6
What is the output of the following code: int sum(int a, int b) return a + b; cout << sum(3, 5); in C++?
A.
35
B.
Compilation error
C.
8
AnswerD.
sum(3, 5)
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board