R
Q. What will be output for the followiing code?
#include <iostream> class A { private: int a; public: A() { a = 0; } friend class B; // Friend Class }; class B { private: int b; public: void showA(A& x) { std::cout << ""A::a="" << x.a; } }; int main() { A a; B b; b.showA(a); }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Conversion of data type is called
Q. If inner catch handler is not able to handle the exception then__________.
Q. What does the following statement mean?
Q. Rick Mascitti coined the name ___
Q. How many operators are classified in C++?
Q. Which of the following correctly describes a friend function in C++?
Q. Which of the following is not a component of file system
Discusssion
Login to discuss.