FBOLST:
I expected that ArraySize returns 6, but it returns 0! Why?
void PrintArray(int &inputArray[][]) { int arraySize = ArraySize(inputArray); Alert(arraySize); }
Because array size is not able to deal with 2 dimensions dynamic array.
Use
void PrintArray(int &inputArray[][2])
However it's weird it doesn't give any error.
I copied and pasted your code. Saved and compiled it. Then I ran it on a chart. I got 6 on the alert. Not sure where you see 0.
Alert("Build:",TerminalInfoInteger(TERMINAL_BUILD)," ",MQLInfoInteger(MQL_DEBUG) ? " DEBUG" : " NORMAL", " mode. Size:", arraySize," Error:",_LastError);

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
I expected that ArraySize returns 6, but it returns 0! Why?