Q:

: What would happen if the stopping condition in factorial were

0

What would happen if the stopping condition in factorial were

if (val != 0)

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

If we pass a negative number to the function, then it will recursively call itself infinitely.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now