Multidimensional Arrays
If I have a pointer to an array of unknown dimensions, is there a way to find out the dimensions of that array, or must I create some special class that keeps track of them?
You can''t tell the size of an array at runtime from its pointer. Your best bet is to wrap it in a class that keeps track of the array''s size.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement