Select the correct option to test your answer:
Computer
Miscellaneous On Data Structures
Difficulty: Medium
How many times will the function fibo() be called when the following code is executed? int fibo(int n) { if(n == 1) return 0; else if(n == 2) return 1; return fibo(n - 1) + fibo(n - 2); } int main() { int n = 5; int ans = fibo(n); printf("%d",ans); return 0; }
More Computer Questions
Which of the following comes with a smooth full screen overlay effect?
Which of the following is not a WebSocket event?
To print a voucher from Tally we need to press
Which of the following is an example of a Shortcut Property?
Which of the following basic action is performed with the help of mouse in the word's environment?