Solved

Assuming That Ptr Is a Pointer to a Class Data

Question 11

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents