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

which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

1182


what do you mean by volatile variable?

1050


What is wrapper class in c++?

1117


What are arithmetic operators?

998


What is protected inheritance?

1049


Will rust take over c++?

1060


How do you invoke a base member function from a derived class in which you’ve overridden that function?

1116


What is set in c++?

1133


Tell me an example where stacks are useful?

1035


Who discovered c++?

1050


What is a wchar_t in c++?

1138


Can java be faster than c++?

1153


Is java as fast as c++?

1104


Which programming language's unsatisfactory performance led to the discovery of c++?

1334


what are the iterator and generic algorithms.

1967