What is the output of:
String a1 = "Hello";
String a2 = "world!";
String* s1 = &a2;
String& s2 = a1;
s1 = &a1;
s2 = a2;
std::cout << *s1 << " " << s2 << std::endl;
Post New Answer View All Answers
How do I get good at c++ programming?
What problems might the following macro bring to the application?
Explain the virtual inheritance in c++.
What is vectorial capacity?
How can you say that a template is better than a base class?
What do you mean by enumerated data type?
Describe friend function & its advantages.
What is copy constructor? Can we make copy constructor private in c++?
Explain one-definition rule (odr).
What happens when the extern "c" char func (char*,waste) executes?
What are shallow and deep copies?
What sorting algorithm does c++ use?
Can member data be public?
What is struct c++?
Describe about storage allocation and scope of global, extern, static, local and register variables?