Quote:
In fact, afair I learned that multidimensional arrays are nothing else than an array of pointers to other arrays, which don't necessarily have to be in one contiguous memory area.

I am sure this is wrong, no compiler that I know uses an array of pointers to other arrays or something like your code for substituting a multidimensional array. All normal C/C++ compilers support multidimensional arrays natively.