Okay, here's what I've got :
int **getIntArray()
{
int **theArray[240][2];
**theArray[0][0] = 0;
return **theArray;
}
void main()
{
int **theArray = getIntArray();
}
Of course that's not the entire program, but anyway, it compiles fine, but crashes whenever I try to run it. I know it has something to do with either my method or when I call the method because as soon as I comment out the line :
int **theArray = getIntArray();
The program no longer crashes. I must be missing something in how two dimensional arrays are handled, so any help would be greatly appreciated.