Vidyalelo
C++ Programming · Q207

C++ miscellaneous

Programming · C++ Programming · question 207

Q207

What will be the output of the following C++ code? #include using namespace std; int funcstatic(int) int sum = 0; sum = sum + 10; return sum; int main(void) int r = 5, s; s = funcstatic(r); cout << s << endl; return 0;

A.
10
Answer
B.
15
C.
error
D.
20

Answer: Option A

Solution

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