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 is oops and list its features in c++?

999


Explain the differences between private, public and protected and give examples.

960


What is a friend function in c++?

1481


Explain about Virtual Function in C++?

975


What are the new features that iso/ansi c++ has added to original c++ specifications?

1064


Can I make ios apps with c++?

992


What is istream and ostream in c++?

1056


what kind of projects are suitable for c and c++

995


Is C++ case sensitive a) False b) Depends on implementation c) True

1019


What is abstract keyword in c++?

1023


Can a list of string be stored within a two dimensional array?

962


Explain "const" reference arguments in function?

1000


What is the difference between the functions memmove() and memcpy()?

1076


How does work in c++?

1027


How does c++ structure differ from c++ class?

1056