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 Storage-class specifiers<br />

S Automatic storage class<br />

Storage Classes<br />

S Active during block of program<br />

S Local variables (automatically auto)<br />

S register – suggestion to compiler, only with local variables <strong>and</strong><br />

function <strong>parameter</strong>s<br />

S Static storage class<br />

S Exist from program begin to end<br />

S Can be global or local<br />

S Static local variables retain their value when function returns.<br />

19

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

Saved successfully!

Ooh no, something went wrong!