Question 35
Consider the following function written in C:
int f(int n) {
static int i = 1;
if (n >= 5) return n;
n = n + i;
i++;
return f(n);
}The value returned by f(1) is ______.
Sign in to see the answer
Answers and explanations are free — they just need an account.