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.

Pointer Operators<br />

S * in indirection or dereferencing operator.<br />

S Pointer is undefined when created – can be set to 0 or<br />

NULL<br />

S Dereferencing an uninitialized or NULL pointer is BAD!<br />

S What if we did (*count)?<br />

S Or int *countPtr; then (*countPtr) ?<br />

54<br />

7<br />

count

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

Saved successfully!

Ooh no, something went wrong!