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
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
what do you mean by volatile variable?
What is wrapper class in c++?
What are arithmetic operators?
What is protected inheritance?
Will rust take over c++?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What is set in c++?
Tell me an example where stacks are useful?
Who discovered c++?
What is a wchar_t in c++?
Can java be faster than c++?
Is java as fast as c++?
Which programming language's unsatisfactory performance led to the discovery of c++?
what are the iterator and generic algorithms.