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 is oops and list its features in c++?
Explain the differences between private, public and protected and give examples.
What is a friend function in c++?
Explain about Virtual Function in C++?
What are the new features that iso/ansi c++ has added to original c++ specifications?
Can I make ios apps with c++?
What is istream and ostream in c++?
what kind of projects are suitable for c and c++
Is C++ case sensitive a) False b) Depends on implementation c) True
What is abstract keyword in c++?
Can a list of string be stored within a two dimensional array?
Explain "const" reference arguments in function?
What is the difference between the functions memmove() and memcpy()?
How does work in c++?
How does c++ structure differ from c++ class?