pointers

Posted By: hatten

pointers - 02/17/17 12:22

I am wondering if it is possible to use the following multidimensional pointer construct:

#define N1 5
#define N2 5
#define N3 7

run()
{

vars Arr[N1][N2][N3];
var Val;
...

Arr[1][2][1]=series(priceClose(1)-priceclose(0));


Val = Arr[1][2][1](1);

Is this possible or not possible?
Posted By: jcl

Re: pointers - 02/20/17 08:53

Yes, but this is wrong syntax. Correct is:

static vars Arr[5][5][7];
...
vars MySeries = Arr[1][2][1];
Val = MySeries[1];

© 2024 lite-C Forums