All challenges
Code AnalysisHard 60s

Trace: Recursive Factorial

What does f(4) return?
Starter code
#include <stdio.h>
int f(int n) { return n <= 1 ? 1 : n * f(n - 1); }
int main() {
    printf("%d", f(4));
    return 0;
}

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle