10.07.2015 Views

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Pointer <strong><strong>Type</strong>s</strong>• A pointer type variable has a range of values that consistsof memory addresses and a special value nil.– Provide the power of indirect addressing.– Provide a way to manage dynamic memory• a pointer can be used to access a location in the area wherestorage is dynamically created i.e. the heap.• variables that are dynamically allocated on the heap are heapdynamicvariables.• Pointer types are defined using a type operator:– C/C++: int ∗ptr = new int;Lecture 0638

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

Saved successfully!

Ooh no, something went wrong!