Solved

Assuming That Ptr Is a Pointer to a Class Data

Question 8

Multiple Choice

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;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions