home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH03 / A03111.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-29  |  478.6 KB  |  1 channel  |  11,025 sample rate  |  44 seconds
Transcription: A pointer is an object that contains the address of another object. Use the D reference 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 star 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.