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

Specify different types of decision control statements?

823


Should I learn c or c++ first?

1094


Explain what is polymorphism in c++?

1101


What's the most powerful programming language?

1008


What is searching? Explain linear and binary search.

960


What is friend class in c++ with example?

969


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1038


What is the difference between a "copy constructor" and an "assignment operator" in C++?

1043


What is the difference between while and do while loop?

1113


Can we define a constructor as virtual in c++?

1095


How can I learn dev c++ programming?

1000


What's the order in which the objects in an array are destructed?

1365


Const char *p , char const *p What is the difference between the above two?

1175


What are the uses of typedef in a program?

1050


What are advantages of using friend classes?

1027