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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

S Similar to references<br />

Pointer Operators<br />

S & means “obtain memory address” (countPtr = &count)<br />

S * is indirection or dereferencing operator. * returns<br />

synonym for object to which oper<strong>and</strong> points.<br />

S & <strong>and</strong> * are inverses<br />

52<br />

7<br />

countPtr count

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

Saved successfully!

Ooh no, something went wrong!