Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.35 #28

Open
ahmeducf opened this issue Feb 4, 2021 · 0 comments
Open

6.35 #28

ahmeducf opened this issue Feb 4, 2021 · 0 comments

Comments

@ahmeducf
Copy link

ahmeducf commented Feb 4, 2021

In exercise 6.35, if we pass val-- to the fact function instead of val - 1, the fact function will be invoked every time with the same value val, that's because val-- decrease the value by 1 and return a copy of the original value.

as a result, there will happen a stack overflow and the program will crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant