Arrays
Arrays
Arrays
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Declaration:<br />
[];<br />
Alternative declaration:<br />
[] ;<br />
<strong>Arrays</strong> (cont.)<br />
• can be a primitive datatype or a reference type (for example, a class).<br />
• Declaration alone creates a reference for the array.<br />
int[] a; creates a reference to an array of int:<br />
a<br />
ref int[]<br />
6-4/20