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 / saranya

Hello World

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is multi-threading in C++?

1057


Define upcasting.

1042


Difference between delete and free.

1075


Can notepad ++ run c++?

1085


How can a called function determine the number of arguments that have been passed to it?

1136


What are the extraction and insertion operators in c++?

1004


How we can differentiate between a pre and post increment operators during overloading?

1107


How would you use qsort() function to sort an array of structures?

1123


Will rust take over c++?

1060


How is new() different from malloc()?

1128


What is Destructor in C++?

1184


What is purpose of abstract class?

1072


What is abstraction with real time example?

1152


What is the use of map in c++?

1150


Const char *p , char const *p What is the difference between the above two?

1217