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


1. What does the following do:

void afunction(int *x)
{
x=new int;
*x=12;
}
int main()
{
int v=10;
afunction(&v);
cout<<v;
}
a) Outputs 12
b) Outputs 10
c) Outputs the address of v

Answer Posted / manish podiyal

C): outputs the address of v.

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between global variables and local variable

1040


Is turbo c++ free?

1061


Explain the volatile and mutable keywords.

1060


What is vectorial capacity?

1154


Explain dangling pointer.

1112


Differentiate between a constructor and a destructor in c++.

1006


How to declare an array of pointers to integer?

1125


Which of the following is evaluated first: a) && b) || c) !

2349


How long it will take to learn c++?

1034


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1077


What is buffer and example?

986


What are manipulators used for?

1082


How are the features of c++ different from c?

1076


List the issue that the auto_ptr object handles?

1016


What is guard code in c++?

1155