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...

The [Compatibility Mode] message displays even after a file is saved to the most current version

Indicate whether the statement is true or false

Computer Science & Information Technology

A ____________ is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer

a. site map b. wireframe c. drawing d. hierarchy

Computer Science & Information Technology