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
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Explain the isa and hasa class relationships. How would you implement each?
Explain the concept of memory leak?
What jobs can you get with a c++ certification?
Explain unexpected() function?
How a new operator differs from the operator new?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What is recursion?
What's the order in which the objects in an array are destructed?
what is a reference variable in C++?
What is null pointer and void pointer and what is their use?
List different attributes in C++?
what is VOID?
write a porgram in c++ that reads an integer and print the biggest digit in the number