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
what is multi-threading in C++?
Define upcasting.
Difference between delete and free.
Can notepad ++ run c++?
How can a called function determine the number of arguments that have been passed to it?
What are the extraction and insertion operators in c++?
How we can differentiate between a pre and post increment operators during overloading?
How would you use qsort() function to sort an array of structures?
Will rust take over c++?
How is new() different from malloc()?
What is Destructor in C++?
What is purpose of abstract class?
What is abstraction with real time example?
What is the use of map in c++?
Const char *p , char const *p What is the difference between the above two?