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

Define pre-condition and post-condition to a member function in c++?

1091


why and when we can declar member fuction as a private in the class?

2024


What is difference between class and structure in c++?

1134


What are iterators in c++?

964


What are the advantages of prototyping?

1006


What is the type of this pointer in c++?

1015


Differentiate between a constructor and a method in C++.

996


What is size_type?

972


When you overload member functions, in what ways must they differ?

990


Define anonymous class.

1016


what is Member Functions in Classes?

1117


What is ifstream c++?

983


What is a set in c++?

919


Can you explicitly call a destructor on a local variable?

980


Define a pointer to a data member of the type pointer to pointer?

940