Question 62Asked in BEL PE Computer Science, 17 Dec 2023 (8:30 AM)

The following C function is an example of what type of recursion?

The following C function is an example of what type of recursion? int f(int n) { if(n==1) return 1; else if(n==0) return 0; else return(f(n-1)+f(n-2)); }
  1. ALinear
  2. BBinary
  3. CHead
  4. DTail
Show answerHide answer

Correct answer: (B) Binary

From BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM)

This is question 62 of BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.