home *** CD-ROM | disk | FTP | other *** search
- A Pointer is an object that contains the address of another
- object. Use the dereference operator, star, to declare a pointer.
- Here, "ip" is a pointer to an int and "dp" is a pointer to a
- double. Notice that the initial value of "dp" is the address of
- "d". You can declare pointers to all types, including
- user-defined types. Here, "func" is a pointer to a function that
- takes one argument, a pointer to a character, and returns an int.
- Note that if the parentheses around *func were removed, "func"
- would be the name of a function that returns a pointer to an
- integer. Unlike C, C++ allows pointers to void.
-