I'm trying to create a pointer that points to a 2D array. I looked at the question here A pointer to 2d array, but the solution provided gives me this error when compiling :
"error: incompatible types in assignment of ‘int ()[(((sizetype)(((ssizetype)n) + -1)) + 1)]’ to ‘int [(((sizetype)(((ssizetype)n) + -1)) + 1)]’"
The code is :
int multTable( int n ){
int a = 10;
int table[a][n];
int *(tablepb)[n];
tablepb = &(table[a-1]);
}
How can I make tablepb point to the last array in the first set of arrays of table?