Which code, inserted at line 10, generates the output “Hello World”?

Which code, inserted at line 10, generates the output “Hello World”?
#include #include using namespace std; string fun(string, string);
int main()
{ string s=”Hello”; string *ps; ps = &s; //insert code here return 0;
}
string fun(string s1, string s2)
{ return s1+s2;
}
A. cout << fun(" World");
B. cout << fun(*ps);
C. cout << fun("Hello");
D. cout << fun("Hello", " World");

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.