In-Class Activity to be completed in class.
Note: For this activity and all other activities, you should only make 1 submission (your first submission is always the one graded)
E-mail (Please use Northeastern e-mail)
Which section of Systems are you in?
Is there a difference between the heap and stack memory?
Yes, stack memory is automatically allocated and cleared when a function is called. The heap is otherwise managed by using malloc and free.
No, they are identical.
(Check all that apply) Which of the following apply to a pointer?
A pointer is a data type
A pointers stores an address
You can have pointers to custom data types you define.
What does it mean to dereference a pointer?
To return the value for which we point to. Typically we use '*', or otherwise when we access in array we are dereferencing with the 's (example: mydata = 7;
To return the address of a variable.
What is a NULL Terminator?
Essentially '0'. Typically used to end strings, or indicate the end of a linked list.
What happens if we forget to reclaim our memory with the 'free' function?
A memory leak! It is possible nothing happens if your system has lots of memory. However, if you run out of memory, your system will crash and need to restart to reclaim resources.
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Terms of Service