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

What are guid? Why does com need guids?

1116


What return value must conversion operators have in their declaration?

1137


What is the default access level?

1120


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

1111


What gives the current position of the put pointer?

1043


How many standards of c++ are there?

1145


What is scope resolution operator in c++ with example?

1088


Name the operators that cannot be overloaded in C++?

1113


Out of fgets() and gets() which function is safe to use and why?

1240


Why do we use vector in c++?

1125


Difference between overloading vs. Overriding

1138


What do you mean by translation unit in c++?

1434


Is atoi safe?

1095


What type of question are asked in GE code writing test based on c++ data structures and pointers?

4030


Explain the concept of memory leak?

1156