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 is the exit function in c++?

1029


Differences between private, protected and public and give examples.

1122


How many types of modularization are there in c++?

1121


Which is most difficult programming language?

1174


Explain one method to process an entire string as one unit?

1664


Can constructor be static in c++?

1169


How do I run a program in notepad ++?

1171


What is virtual destructor ans explain its use?

1170


What are friend classes? What are advantages of using friend classes?

1139


What is scope in c++ with example?

1192


Why can templates only be implemented in the header file?

1146


What are associate containers?

1099


What is unary operator? List out the different operators involved in the unary operator.

1049


What is the use of seekg in c++?

1097


Differentiate between a pointer and a reference with respect to c++.

1300