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 / arun pateel

Answer is b

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use string in c++?

905


Is c++ fully object oriented?

930


What is the difference between while and do while loop? Explain with examples.

1078


What does the ios::ate argument do?

1141


Is c++ proprietary?

1024


Is java easier than c++?

978


Is c++ still in demand?

1117


What is object oriented programming (oop)?

1078


How do I run a program in notepad ++?

1066


Is arr and &arr are same expression for an array?

1023


Describe the advantages of operator overloading?

1002


What is encapsulation in C++? Give an example.

1044


What is the default access level?

1043


Is c the same as c++?

966


Which c++ compiler is best?

1118