Practice mode C++

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.