I know that you can pass a multidimensional array into a function using:
void Class1::foo(Bar bars[][10])
{
// Do stuff
}
and that you could return a pointer to the first member in a single-dimensional array by using:
Bar* Clas2::getBars()
{
return bars; //Where bars is a member of a class
}
However when 'bars' is a multidimensional array, I get the error:
Cannot convert Bar (*)[10] to Bar* in return
Could someone clarify why this is occuring?