Hey everyone. I have a function where I need to uses a variable everytime the functions is called. I need to know the value of the variable when the function is called. Which one is better: Static variable or just modify the variable before the function is called then pass it to the function?
I'm not sure which one is better even for code-reuse. I want to make the code as re-usable as possible.