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 operator overloading in c++ example?
Do you know about latest advancements in C++ ?
What is struct c++?
Write some differences between an external iterator and an internal iterator?
What are the various operations performed on stack?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
Does c++ support exception handling?
What will the line of code below print out and why?
What are the basic data types used in c++?
What is the default width for ouputting a long integer using the insertion operator?
What is flush programming?
What is oop in c++?
What is function overloading c++?
What is a constructor in c++ with example?
what do you mean by volatile variable?