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 / ranjeet garodia

b is correct

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In the derived class, which data member of the base class are visible?

1116


Why are pointers used?

1008


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1031


Are there any special rules about inlining?

1085


Explain the concept of copy constructor?

1051


What is an arraylist c++?

1220


What is namespace std; and what is consists of?

1298


What do you mean by friend class & friend function in c++?

1062


Who was the creator of c++?

1053


What is the error in the code below and how should it be corrected?

763


Explain rtti.

1086


How do you differentiate between overloading the prefix and postfix increments?

1095


Can union be self referenced?

1152


What is the best it certification?

1124


How would you call C functions from C++ and vice versa?

1172