Elementary array question
Your code will compile, but it will not execute.
Because in MQL, arrays can be resized at runtime, so there can be code being executed in another region that would then make that line valid at runtime.
Since the compiler does not have the higher inelegance to analyse and understand every logical path your code might take, it does not check for "array out of range" scenarios during compilation and only during runtime.
It would seem to me that attempting to access the fourth element in an array of size 3 should generate an array out of range error, and yet my code compiles. Why?