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

address of a1 hello

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are mutator methods in c++?

1175


What is the use of c++ programming language in real life?

1056


What is the two main roles of operating system?

1049


Why do we need pointers?

1015


What is copy constructor? Can we make copy constructor private in c++?

1095


Why is polymorphism useful?

1081


What is wrapper class in c++?

1134


What is a string example?

1107


Is c++ a pure oop language?

1088


Is it possible for a member function to use delete this?

1093


What is the use of data hiding?

1023


Is the declaration of a class its interface or its implementation?

1184


What do you mean by “this” pointer?

1086


What does #define mean in c++?

1283


Can union be self referenced?

1169