Assuming that ptr is a pointer to a class data member of class Check and obj is a pointer to a Check object, which of the following statements would be used to output that data member?
a. cout << obj.*ptr;
b. cout << ( *obj ).*ptr;
c. cout << obj->*ptr();
d. cout << ( *obj )->*ptr;
b. cout << ( *obj ).*ptr;
Computer Science & Information Technology
You might also like to view...
________ is the rules for acceptable behavior and manners on the Internet
Fill in the blank(s) with correct word
Computer Science & Information Technology
In DOS, the command ____ displays the files and folders in the current location.
A. CD B. FORMAT C. DIR D. COPY
Computer Science & Information Technology