Vidyalelo
Data Structure · Q196

Dynamic Programming in Data Structures

Programming · Data Structure · question 196

Q196

What is the output of the following program? #include int fibo(int n) if(n<=1) return n; return fibo(n-1) + fibo(n-2); int main() int r = fibo(50000); printf("%d",r); return 0;

A.
1253556389
B.
5635632456
C.
Garbage value
D.
Runtime error
Answer

Answer: Option D

Solution

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