Length of the variable name has no effect on the memory footprint.
Arrays will be basic type size * length of the array.
The string type is kind of odd, the 8 bytes seem to contain a pointer to the actually memory buffer which means the overall size will be 8 bytes + the buffer size.
Assume you have already looked at MQL4 Reference - Basics - Data types?
Arrays will be basic type size * length of the array.
The string type is kind of odd, the 8 bytes seem to contain a pointer to the actually memory buffer which means the overall size will be 8 bytes + the buffer size.
Assume you have already looked at MQL4 Reference - Basics - Data types?
Thank you. I'd put a wrong data in the up question but I've corrected it.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
As for string and double is 8 bytes, bool and int 4-bytes, but array?
What are the calculation modes for array?
And how much length of the variable name is increasing use of bytes in an array?