Why is this two-dimensional array expression wrong?

 

I have an error in an EA that gives the following error message "invalid index value" to this declaration:

int aIndex[2][];

Why?

 

Forum on trading, automated trading systems and testing trading strategies

A multidimensional array can be static or dynamic only in the first dimension, with all further dimensions being static. Thus, the ArrayResize() function allows you to only change the size of the first dimension. Sizes of other dimensions must be specified when declaring an array:


 
honest_knave:


Thank you very much!