Home Segments Index Top Previous Next

439: Practice

Suppose, that you want to be able to store information, on average, about 10 box objects, but you must be prepared, in the worst case, to handle 1000. In the average case, how much memory will you save by using an array of pointers to box objects, created at run time, rather than using an array of box objects.