Copying one dimension of a multidimensional array to a single dimensional one

 

Hello everybody,

suppose I have a multidimensional array

 

int myarr[3][4]

  

is it possible then to have access to a single dimensional projection of it in this way:

 

int temparr[4];
temparr=myarr[0][];

 

or using ArrayCopy in the same way:

 

ArrayCopy(temparr,myarr[0][],0,0,WHOLE_ARRAY);
Documentation on MQL5: Array Functions / ArrayCopy
Documentation on MQL5: Array Functions / ArrayCopy
  • www.mql5.com
Array Functions / ArrayCopy - Documentation on MQL5
 
ArrayCopy(temparr,myarr,0,0,WHOLE_ARRAY);    // First row
ArrayCopy(temparr,myarr,0,4,WHOLE_ARRAY);    // Second row
ArrayCopy(temparr,myarr,0,8,WHOLE_ARRAY);    // Third row