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

Difference between overloading vs. Overriding

1089


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1187


What are pointers used for c++?

1070


Is c++ vector a linked list?

999


What are static variables?

1140


Why do we need pointers?

1007


When should we use multiple inheritance?

1049


Differentiate between C and C++.

1253


What is a dangling pointer in c++?

1154


What are member functions used in c++?

1149


What is setbase c++?

1136


What is c strings syntax?

1146


What is null c++?

1142


What is array give example?

1051


Write a program to find the Factorial of a number

1064