- Computes
3 % 3
, which is0
- Computes
"" + 0
, which is"0"
- Creates
dig
and sets it to point to"0"
- Checks if
3 / 3
, which is1
is> 0
, which istrue
- Computes
"0" + ____
- Calls
recur
with3 / 3
, which is1
Resulting call stack
r(1)
r(3) dig -> "0" "0" + ____
r(10) dig -> "1" "1" + ____
r(32) dig -> "2" "2" + ____