What is the default access level of members of a struct in C++?
Correct answer D. public
Explanation
Members of a C++ struct are public by default, whereas members of a class are private by default. This is the main difference between them.
Answer checked How we write and check questions
Discussion