GATE 2004
November 11, 2023Question 9521 – C-Programming
November 11, 2023Question 9519 – C-Programming
Consider the following C function:
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
Correct Answer: C
Question 8 Explanation:
The value return by f(1) = 7
5
6
7
8
Subscribe
Login
0 Comments