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
What are mutator methods in c++?
What is the use of c++ programming language in real life?
What is the two main roles of operating system?
Why do we need pointers?
What is copy constructor? Can we make copy constructor private in c++?
Why is polymorphism useful?
What is wrapper class in c++?
What is a string example?
Is c++ a pure oop language?
Is it possible for a member function to use delete this?
What is the use of data hiding?
Is the declaration of a class its interface or its implementation?
What do you mean by “this” pointer?
What does #define mean in c++?
Can union be self referenced?