Correct Answer: B does not inherit access to x from A.
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
The value of '(sizeof(short) == sizeof(int) && sizeof(int) == sizeof(long))' is
Output of the following program? template void foo(U&, T&) { std::cout << 'first'; } template void foo(int&, const T&) { std::cout << 'second'; } int main() { int a; double g = 2.; foo(a, g); return 0; }
Output of the following C++ code ? #include class A { int a; public: void foo() {std::cout<<'foo';} }; int main() { A* trial=nullptr; trial->foo(); }
Which of the following operators can you not overload?
const std::string * s; std::string const * g; What can be said about s and g?
To arrange the elements in an array in ascending order, you use the ____ method.
The maximum number of entry points that any programming structure can have is ____.
The function eof is a member of the data type ____________________.
The standard header file for the abs(x)function is ____.
Before using the data type string, the program must include the header file ____.