Mar-17-2021, 10:37 PM
There obviously is a problem with the calling code that appears when it is called from inside a function. Without seeing where the error is appearing it is difficult to see where the error occurred.
This code has no errors because it works when a == 1.
This code has no errors because it works when a == 1.
x = 5 / aNever mind that it fails when a == 0. That is a problem with a, not the code.