mardi 5 juillet 2016

Why is a hard coded width required when declaring a two dimensional array?

Pointers to pointers seem to be the only way to dynamically declare a two dimensional (or multidimensional) array besides doing the leg work myself and coding the pointer arithmetic to create a "fake" multidimensional array out of a one dimensional array. I understand this is the way it is but why?!

Aucun commentaire:

Enregistrer un commentaire