Global variables and callback functions

Jul 20, 2012 at 6:35pm
So I'm pretty new to programming. Maybe this is a dumb question but is there a way to avoid global variables when using stuff that requires callback functions?

Since the variable needs to be accessible int two different functions, one which I am unable to change the arguments. I don't see how it's possible
Jul 20, 2012 at 6:41pm
It depends on situation.But memory should not be problem for beginners.
As for beginner programming you can use refenences.
pass variables in function parameter by reference.
Topic archived. No new replies allowed.