Question

What is the output of the following recursive function call func(3) ? int func ( int
n) {            if (n == 0 ) return 1 ;     return n * func(n - 1 ); }

A 1
B 3
C 6
D 9
E 27
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)