Vidyalelo
C++ Programming · Q85

Functions and Procedures in C++

Programming · C++ Programming · question 85

Q85

What will be the output of the following C++ code? #include using namespace std; int func(int m = 10, int n) int c; c = m + n; return c; int main() cout << func(5); return 0;

A.
15
B.
10
C.
compile time error
Answer
D.
30

Answer: Option C

Solution

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