Vidyalelo
C++ Programming · Q78

Functions and Procedures in C++

Programming · C++ Programming · question 78

Q78

What will be the output of the following C++ code? #include using namespace std; int fun(int=0, int = 0); int main() cout << fun(5); return 0; int fun(int x, int y) return (x+y);

A.
-5
B.
0
C.
10
D.
5
Answer

Answer: Option D

Solution

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