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;
Post New Answer View All Answers
What is one dimensional array in c++?
What are stacks?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
Can a function take variable length arguments, if yes, how?
What is class in c++ with example?
How do we balance an AVL Tree in C++?
What is the difference between prefix and postfix versions of operator++()?
How would perform Pattern Matching in C++?
What happens when the extern "c" char func (char*,waste) executes?
What are the effects after calling the delete this operator ?
What is abstraction in c++ with example?
What are the basics of local (auto) objects?
What is binary search in c++?
What is array give example?
an integer constant must have atleast one a) character b) digit c) decimal point