Which code, inserted at line 15, generates the output “5 Bob”?

Which code, inserted at line 15, generates the output “5 Bob”?
#include #include using namespace std; class B; class A { int age; public: A () { age=5; };
friend void Print(A &ob, B &so);
};
class B { string name; public:
B () { name=”Bob”; };
//insert code here
};
void Print(A &ob, B &so) {
cout<A. friend void Print(A ob, B so);
B. friend void Print(A &ob, B &so);
C. friend void Print(A *ob, B *so);
D. None of these

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPA

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.