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...

given the code segment below
void main()
{
cout<<"my no. is";
}
question is how can we get the output hai aravind my no. is
99999999999 without editig the main().

Answer Posted / pankaj rathor

#include <iostream>

using namespace std;

class dummy
{
public:
dummy()
{
cout<<"Hai Arvind ";
}

~dummy()
{
cout<<" 99999999999";
}
};

dummy obj;

int main()
{
cout<<"my no. is";
return 0;
}

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which software is best for c++ programming?

1002


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4079


Can I learn c++ without c?

1104


How do I download c++?

974


Explain terminate() and unexpected() function?

1048


What is difference between array and vector in c++?

983


Explain how we implement exception handling in c++?

1014


Is c++ fully object oriented?

924


What is the difference between a template and a macro?

1008


What are the 4 types of library?

1129


Which one between if-else and switch is more efficient?

1023


Which bit wise operator is suitable for checking whether a particular bit is on or off?

978


Why is c++ not purely object oriented?

971


How would you use the functions sin(), pow(), sqrt()?

1140


write a function signature with various number of parameters.

1002