23.03.2013 Views

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

S Function call stack<br />

Stacks<br />

S Stack frame or activation record<br />

S Holds function <strong>parameter</strong>s, return address of caller function,<br />

<strong>and</strong> local variables<br />

S Do not want stack overflow! (often as result of recursion)<br />

S Static <strong>and</strong> global variables are stored separately<br />

S Later – <strong>dynamic</strong> memory <strong>and</strong> the heap<br />

21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!