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 the difference between public and private data members?

1156


How many standards of c++ are there?

1084


Explain operator overloading.

1047


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

990


How can you quickly find the number of elements stored in a dynamic array?

1039


What is iterator c++?

968


what are the decision making statements in C++? Explain if statement with an example?

1071


What is using namespace std in cpp?

1135


What is diamond problem in c++?

988


Why is main function important?

1089


Does c++ have string data type?

1093


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

1157


What do you mean by const correctness?

1070


What does it mean to declare a member function as static?

1049


In a function declaration, what does extern mean?

1042