ISRO Scientist or Engineer Computer Science 2008

Question 40

Consider the following C function:
int f(int n)
{ static int i = 1;
if (n >= 5 ) return n;
n=n + i,
j++;
return f(n);
}
The value returned by f(1) is


Create a FREE account and get:

  • Download Maths Shortcuts PDF
  • Get 300+ previous papers with solutions PDF
  • 500+ Online Tests for Free

CAT Quant Questions | CAT Quantitative Ability

CAT DILR Questions | LRDI Questions For CAT

CAT Verbal Ability Questions | VARC Questions For CAT

cracku

Boost your Prep!

Download App