Question

What is the output of the following C code? void func(int
n) {     if (n == 0) return;     printf("%d ",
n);     func(n-1);     printf("%d ",
n); } func(3);

A 1 2 3
B 3 2 1
C 3 2 1 1 2 3
D 3 2 1 0 1 2 3
E 1 1 2 2 3 3
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)