For this activity, the following table will be used:
Aspect | C | Java |
---|---|---|
Call to obtain memory | ||
Memory allocation needs size | ||
More than one function available for allocation/creation | ||
Is allocated memory initialized? | ||
Call to destroy/liberate memory | ||
Call to change the size of a previously allocated block | ||
Is it possible to access beyond the limits of an allocated block? | ||
What happens when a pointer to an allocated memory block is lost (is no longer stored in any variable)? |
In groups of four people and during five minutes, complete the previous table. The answers must be obtained through consensus.
Each group answer are shared with the rest of the class to fill a common table.