I have to write a code that will produce a 2^n by 2^n board and then fill it (filling it isn't important, I think I got that down). Now, since my board is dynamic, any suggestions on how to deal with this. I'm passing my array from my main function to a void function where it will be printed. So, what would be the best way to handle this?
I figure I have to use pointers to accomplish this, but is that the best way to handle it. And, how would that look. Someone said they were doing something like
int a[m][m]
int *ptr = a;
int **ptr = ptr[m];
but then they said they were getting a lot of bugs. So, any suggestions on how to tackle this. I'm new to pointers so I'm not sure what to try.