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 / guest

Ten(10) is the out put

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When to use “const” reference arguments in a function?

1088


Tell me can a pure virtual function have an implementation?

1047


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

1181


What is decltype c++?

1009


Why iomanip is used in c++?

1142


What are the benefits of oop in c++?

1243


What is endl c++?

1107


What is the purpose of extern storage specifier?

1198


What problems might the following macro bring to the application?

1064


What is &x in c++?

1010


How do we balance an AVL Tree in C++?

1145


Can a constructor be private?

1080


Can we make copy constructor private in c++?

1066


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1103


how to explain our contribution in the project?

3712