Question: Consider the following code: int f(int n) { } static int i = 1; if(n = 5) return n; n = n + i;
Consider the following code: int f(int n) { } static int i = 1; if(n = 5) return n; n = n + i; i++; return f(n); What would be the value returned by f(1)? 05 07 08
Step by Step Solution
3.37 Rating (153 Votes )
There are 3 Steps involved in it
Answer 7 here i is static so preverse its value ... View full answer
Get step-by-step solutions from verified subject matter experts
