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...
List five steps that can be used to protect a home network.
What will be an ideal response?
Computer Science & Information Technology
When connecting to the Internet via a ________ connection, it will take 53 seconds to download an average MP3 music file
A) cable B) fiber-optic C) DSL D) satellite
Computer Science & Information Technology
Which of the following choices enables you to remove an item from the Start menu completely?
A) Remove this item B) Don't display this item C) Cancel D) Unpin
Computer Science & Information Technology
Various methods are available to advance slides during a presentation
Indicate whether the statement is true or false
Computer Science & Information Technology