SyntaxFix
Write A Post
Hire A Developer
Questions
What happens is that the recursive call itself results in further recursive behaviour. If you were to write it out you get:
fact(4) fact(3) * 4; (fact(2) * 3) * 4; ((fact(1) * 2) * 3) * 4; ((1 * 2) * 3) * 4;