A member of a structure or of a class is accessed using the
A. Comma operator
B. The dot operator
C. The indexing operator
D. The ampersand operator
Answer:B
A member of a structure or of a class is accessed using the
A. Comma operator B. The dot operator C. The indexing operator D. The ampersand operator
Explanation: The member of a structures or classes are accessed by writing the tag followed by the dot operator which in turn is followed by the name of the member or a call to a member function.