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 a pdb file?

937


What are the uses of static class data?

1118


What is the type of this pointer in c++?

1006


Why do we use string in c++?

883


How can a struct in c++ differs from a struct in c?

980


What is c++ namespace?

1142


What is a dangling pointer in c++?

1084


Can I learn c++ without knowing c?

1000


What is the difference between multiple and multilevel inheritance in c++?

1081


What c++ is used for?

1010


What are the methods of exporting a function from a dll?

1141


What is atoi?

922


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

749


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1507


What is the difference between the functions memmove() and memcpy()?

1075