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

What is the identity function in c++? How is it useful?

1096


What are disadvantages of pointers?

1093


Why do you use the namespace feature?

1134


What are guid?

1303


What are the unique features of C++.

1143


Explain about templates of C++.

1200


What are virtual constructors/destructors?

1076


Show the declaration for a static function pointer.

1110


What are pointers used for c++?

1104


Can you Mention some Application of C/C++?

1126


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

1078


How to get the current position of the file pointer?

1101


What is the use of 'using' declaration in c++?

1194


What is pair in c++?

1124


Why do we use classes in c++?

1114