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 are manipulators used for?
What is the use of turbo c++?
What should main() return in c and c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What is the basic structure of a c++ program?
Which should be more useful: the protected and public virtuals?
Are there any special rules about inlining?
What are the characteristics of friend functions?
Define the operators that can be used with a pointer.
You run a shell on unix system. How would you tell which shell are you running?
In the derived class, which data member of the base class are visible?
Write my own zero-argument manipulator that should work same as hex?
What is the limitation of cin while taking input for character array?
Write a program to concatenate two strings.
what is oops and list its features in c++?