Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exam Review Sheet: Part 8 Question

45 views
Skip to first unread message

Philip Markowski

unread,
Apr 9, 2012, 7:05:49 PM4/9/12
to
What is the total amount of free memory available initially? If it is
not specified, should we assume it to be some value, or just make it a
number that would hold the total amount of space to be allocated?
Thanks.

Stephen Pisani

unread,
Apr 9, 2012, 7:51:44 PM4/9/12
to
In practice it would be specified, I believe in tutorial we had a 100
word heap (so before any allocations the first word stores 98, the
second word stores a null pointer, and the remaining 98 words are free).

Rob Schluntz (CS 241 Tutor)

unread,
Apr 10, 2012, 9:02:43 AM4/10/12
to
Oops, that's my mistake. You should be able to assume a 100 word heap
for this example as well.

Sorry about the confusion!
0 new messages