Arrays, parameter passing, pointers and dynamic allocation. - ELIS
Arrays, parameter passing, pointers and dynamic allocation. - ELIS
Arrays, parameter passing, pointers and dynamic allocation. - ELIS
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Multidimensional <strong>Arrays</strong><br />
S int array[2][3] = {{1, 2, 3}, {4, 5, 6}};<br />
S int array[2][3] = {1, 2, 3, 4};<br />
S int array[2][3] = {{1, 2}, {4}};<br />
S Different from Java – contiguous in memory<br />
S 2 nd dimension needs to be known when <strong>passing</strong> to a<br />
function<br />
45