Maybe I should take this back:
It's actually not that bad a reason if it simplifies the code in a case like this, but it is not a path to optimizing performance either.
Type: Posts; User: MK27
Maybe I should take this back:
It's actually not that bad a reason if it simplifies the code in a case like this, but it is not a path to optimizing performance either.
So why not just make it iterative to start with?
Yeah, that is part of the overhead of a function call, and the address is copied. However, copying a pointer is extremely trivial, I think...
You have it backward. Iterating a function call will not increase your "overhead". But recursion surely will.
Using globals might provide an advantage, but goto won't.