Please assist with below question on pointers to arrays. I have 20 arrays that are each 350 elements long. I need to pass the address of a select 3 out of the 20 arrays, to an array of pointers. Then later in my code I need to access individual elements within the arrays, within the array of pointers. However I am unsure as to the syntax, please comment as to whether the below is correct.
unsigned short Graph1[350];
unsigned short Graph2[350];
unsigned short Graph3[350];
... ... ...
unsigned short Graph19 [350];
unsigned short Graph20 [350];
unsigned short *ptr_Array[3];
...
*ptr_Array[0] = &Graph6; // Passing the address of array Graph6, into the array of pointers.
*ptr_Array[1] = &Graph11; // Passing the address of array Graph11, into the array of pointers.
*ptr_Array[2] = &Graph14; // Passing the address of array Graph14, into the array of pointers.
...
Varriable1 = *ptr_Array[1]+55 // Trying to pass the 55th element of Graph11 into Varriable1.
20 arrays that are each 350 elementswhy don't you use 2-d array?