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

Explain linked list using c++ with an example?

1024


If I is an integer variable, which is faster ++i or i++?

1016


What is the syntax for a for loop?

1074


Write a program which employs Recursion

1196


What is the basic concept of c++?

964


What are the advantages of using typedef in a program?

1103


What is the purpose of templates in c++?

989


What is an inline function in c++?

1073


What is a container class?

1061


Why #include is used?

1009


What is the difference between structures and unions?

1015


What does floor mean in c++?

1020


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

1020


describe private access specifiers?

1137


What is data abstraction? How is it different from data encapsulation?

946