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
Why use of template is better than a base class?
What is the use of setfill in c++?
Describe protected access specifiers?
Tell me what are static member functions?
What is c++ hiding?
what is the use of void main() in C++ language?
Describe the syntax of single inheritance in C++?
What are the four partitions in which c++ compiler divides the ram?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Can a program run without main function?
What is the best book for c++ beginners?
What is an inclusion guard?
Mention the ways in which parameterized can be invoked.
What do nonglobal variables default to a) auto b) register c) static