How do I return a multidimensional array stored in a private field of my class?
class Myclass {
private:
int myarray[5][5];
public:
int **get_array();
};
// This does not work:
int **Myclass::get_array() {
return myarray;
}
I get the following error:
cannot convert
int (*)[5][5]toint**in return