Home Segments Index Top Previous Next

381: Practice

Suppose that you want to be able to store information, on average, about 10 trade objects, but that 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 trade objects, created at run time, as compared to using an array of trade objects.