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
Out of fgets() and gets() which function is safe to use and why?
What is abstraction c++?
Explain differences between new() and delete()?
Define pointers?
To what does “event-driven” refer?
Please explain the reference variable in c++?
What is the difference between strcpy() and strncpy()?
Define whitespace in C++.
How do you declare a set in c++?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
How the keyword struct is different from the keyword class in c++?
Write bites in Turbo c++ Header ("Include") Files.
What is the latest c++ version?
What are c++ redistributables?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes