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 / manish podiyal

C): outputs the address of v.

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Show the declaration for a static member variable.

1007


What is the function of I/O library in C++ ?

1201


What is anonymous object in c++?

1101


What is a forward referencing and when should it be used?

1166


Difference between a homogeneous and a heterogeneous container

1147


How did c++ start?

1098


How do you save a c++ program?

1049


Give 10 points of differences between C & C++.

1144


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

1034


What are the three forms of cin.get() and what are their differences?

1242


What are multiple inheritances (virtual inheritance)?

1064


what do you mean by volatile variable?

1063


What is c++ iterator?

1155


Explain the difference between c++ and java.

1121


Write a code/algo to find the frequency of each element in an array?

1124