i have a nested array and i am trying to pass it from one function to another
but on the other end there is no data
this is where it is initialized :
int myarray[4][23];
//myarray populated
int size = sizeof(myarray) / sizeof(myarray[0]);
std::cout << "AND " << size << std::endl; //this gives me 4 as expected
function(myarray);
it then goes to another file and is used:
function(int myarray[][23]) {
int size = sizeof(myarray) / sizeof(myarray[0]);
std::cout << "AND " << size << std::endl; //this gives me 0
}
thanks in advance