Gate2004_31

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
(a) 5        (b) 6           (c) 7       (d) 8

Answer

Discuss

0Comment