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 / arun pateel

Answer is b

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you pass a vector to a function?

1032


How many static variables are created if you put one static member into a template class definition?

1091


Explain operator overloading.

1109


Is dev c++ a good compiler?

1018


Specify some guidelines that should be followed while overloading operators?

1267


What it is and how it might be called (2 methods).

1263


What is a class definition?

1123


What are the extraction and insertion operators in c++? Explain with examples.

1260


What is abstraction with real time example?

1209


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

2060


Which is best c++ or java?

1143


Write about the scope resolution operator?

1077


What is anonymous object in c++?

1137


Explain the advantages of using friend classes.

1230


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

1074