MCQOPTIONS
Saved Bookmarks
| 1. |
What is the value returned by the function f given below when n=100 ? int f (int n) { if (n==0) then return n; else return n + f(n-2); } |
| A. | 2550 |
| B. | 2556 |
| C. | 5220 |
| D. | 5520 |
| Answer» B. 2556 | |