Do local variables get a new address every time they are declared?
Local variables are created on the stack when a function is called and that stack is released when the function returns. They are temporary, so memory is not overloaded.
Do some research on C/C++. The principles are the same or at least very similar.
I'm asking because for what I'm doing I'm worried about overloading the memory.
Maybe reading the documentation will help ?
- www.mql5.com
Local variables are created on the stack when a function is called and that stack is released when the function returns. They are temporary, so memory is not overloaded.
Do some research on C/C++. The principles are the same or at least very similar.
Thanks guys, I'll look into this.