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;
Answer Posted / saranya
Hello World
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Can we use struct in c++?
Mention the ways in which parameterized can be invoked.
What is oop in c++?
What is the difference between ++ count and count ++?
How can you link a c program with a c function?
What is the purpose of templates in c++?
Will rust take over c++?
Discussion on error handling of C++ .
What is a container class? What are the types of container classes in c++?
What is virtual base class uses?
Can I run c program in turbo c++?
Search for: what is pair in c++?
Which of the following is evaluated first: a) && b) || c) !
Which software is best for programming?
What is the history of c++?