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
Is c++ low level?
What is insertion sorting?
Why was c++ created?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What are the stages in the development cycle?
Write a program to add three numbers in C++ utilizing classes.
Is c++ vector dynamic?
What is an adaptor class in c++?
What is dev c++ used for?
Why is the function main() special?
Are iterators pointers?
List different attributes in C++?
Can we use struct in c++?
What are pointer-to-members in C++? Give their syntax.
Write a recursive program to calculate factorial in c++.