24.01.2014 Views

Arrays

Arrays

Arrays

SHOW MORE
SHOW LESS

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

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

Saved successfully!

Ooh no, something went wrong!