CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Previous
Contents
Next
Keyword Index
Pointer Examples (cont.)
C and C++: for both dynamic storage management and addressing
Explicit dereferencing and address-of operator
Can do address arithmetic in restricted forms
Domain type need not be fixed (void * )
C++ reference types
Constant pointers that are implicitly dereferenced
Typically used for parameters
Advantages of both pass-by-reference and pass-by-value