Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What does int * mean in c++?

1217


Do inline functions improve performance?

1058


Define the process of error-handling in case of constructor failure?

1006


Write about the role of c++ in the tradeoff of safety vs. Usability?

1048


What is c++ namespace?

1193


Define pointers?

1032


Why is c++ awesome?

1021


Write a Program for find and replace a character in a string.

1064


What are associate containers?

1014


What does override mean in c++?

1059


Can non graphic characters be used and processed in C++?

1188


Is linux written in c or c++?

1032


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1235


Difference between overloading vs. Overriding

1068


What is &x in c++?

981