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:
Verified
Q6: If a derived class inherits from two
Q7: _ is/are used to solve the problem
Q8: The const_cast operator can be used to
Q9: An identifier's storage class:
A) Determines whether an
Q10: Which operator keyword corresponds to ^?
A) xor
B)
Q12: Namespace definitions are different from class definitions
Q13: The const_cast operator is needed when _
Q14: Individual namespace members can be accessed without
Q15: Which of the following declares a pointer
Q16: Multiple inheritance means that a derived class
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents