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 / pokala
world! world! is the right anwer.
Do not confuse with other asnwers.
Same is verified.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the comments in c++?
Does c++ have arraylist?
what Is DCS ? what i will get benefit when i did?
Why c++ is faster than java?
Which one is better- macro or function?
What is the use of main function in c++?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
What is the difference between a pointer and a link in c ++?
What character terminates all character array strings a) b) . c) END
What are punctuators in c++?
What c++ is used for?
What is virtual methods?
What do you mean by delegate? Can a user retain delegates?
Explain explicit container.
What are the four main data types?