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

How do I get good at c++ programming?

1173


What problems might the following macro bring to the application?

1057


Explain the virtual inheritance in c++.

1069


What is vectorial capacity?

1168


How can you say that a template is better than a base class?

1073


What do you mean by enumerated data type?

1051


Describe friend function & its advantages.

1135


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

1091


Explain one-definition rule (odr).

1119


What happens when the extern "c" char func (char*,waste) executes?

1089


What are shallow and deep copies?

1119


What sorting algorithm does c++ use?

1155


Can member data be public?

1037


What is struct c++?

1006


Describe about storage allocation and scope of global, extern, static, local and register variables?

1259