Question

What is the output of the following C code? int f(int
n) {     if (n <= 1) return 1;     return n * f(n - 2); }           int main() {    printf("%d", f(7));    return 0; }

A 105
B 5040
C 35
D 210
E 7
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)