10.07.2015 Views

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Pointers in C/C++• Extremely flexible but must be used with care:– Pointers can point at any variable regardless of when or where itwas allocated.– Used for dynamic storage management and addressing.– Explicit dereferencing (∗) and address-of (&) operators.– Domain type need not be fixed:• void * can point to any type and can be type checked.• void * cannot be de-referenced.– Pointer arithmetic is possible.Lecture 0642

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

Saved successfully!

Ooh no, something went wrong!