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
Explain the uses of static class data?
What are register variables?
What are vectors used for in c++?
How do you write a function that can reverse a linked-list?
Name four predefined macros.
What is a volatile variable in c++?
What is a container class?
What is the best it certification?
How can you say that a template is better than a base class?
What is the role of copy constructor in copying of thrown objects?
How do we implement inheritance in c++?
Is it possible for a member function to use delete this?
What is the cout in c++?
Should I learn c or c++ or c#?
Explain how overloading takes place in c++?