Question: Example 8.24, which considered the layout of a two-dimensional array of characters, counted only the space devoted to characters and pointers. This is appropriate if
Example 8.24, which considered the layout of a two-dimensional array of characters, counted only the space devoted to characters and pointers. This is appropriate if the space is allocated statically, as a global array of days or keywords known at compile time. Supposed instead that space is allocated in the heap, with 4 or 8 bytes of overhead for each contiguous block of storage. How does this change the tradeoffs in space efficiency?
Step by Step Solution
3.31 Rating (154 Votes )
There are 3 Steps involved in it
Heap follows dynamic memory allocation unlike arrays So there ... View full answer
Get step-by-step solutions from verified subject matter experts
