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.

Differences from Java<br />

S No automatic “.length” for arrays<br />

S No guaranteed compiler array bounds checks – if you go<br />

outside [0 through (arraySize-1)], undefined behavior<br />

S <strong>Arrays</strong> are always contiguous in memory<br />

37

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

Saved successfully!

Ooh no, something went wrong!