Correct Answer: The members of a class are private by default, and the members of a struct are public by default.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C++ Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C++ MCQ Questions
In C++, a comment can only be specified with a leading //.
std::vector<int> v(4); std::fill(v.begin(), v.end(), 4); What is the content of vector v?
What will 'int a = 'a';' do?
Which of the following can cause a memory corruption error?
Consider this code fragment: a = 25; b = &a; What does b equal?
Which STL class is the best fit for implementing a phonebook? Suppose each entry contains a name and a phone number, with no duplicates, and you want to have lookup by name.
What is the purpose of a destructor?
Consider a class named CustomData. Which choice is a correct declaration syntax to overload the postfix ++ operator as a class member?
What does this function do? auto buff = new char[50]; Std::memset(buff,20,50);
What is this expression equivalent to? A->B->C->D