What I am trying to do is point to a multidimensional array. I found that I can use a pointer to point to a 1-dimensional array. Is it possible to point to a multidimensional array? This is what I have so far:
1 2 3 4 5 6
int var1[5] = {1, 1, 2, 3, 5};
int var2[2][5] = {{1, 2, 3, 4, 5},{6, 7, 8, 9, 10}};
int * var3;
var3 = var1;
//var3 = var2;// this is what I want, but it creates errors
var3 = var2[0];//this works, but it only gives me a section of the array
Otherwise is there a way to store a multidimensional array in another multidimensional array with something like array1 = array2;?