Q16
MCQMarks unknownA recursive program to compute Fibonacci numbers is shown below. Assume you are also given an array with all elements initialized to fib(n) { if (n > M) error (); if (n == 0) return 1; if (n == 1)return 1; if (▭)________________________(1) return ▭__________________(2) t = fib(n - 1) + fib(n - 2); ▭_____________________________(3) return t; }
Sign in to save attempts.
Loading…