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 / guest

Ten(10) is the out put

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

1024


Explain terminate() function?

1019


What is prototype in c++ with example?

1088


Explain the uses oof nested class?

1108


Explain the difference between overloading and overriding?

1102


How do I use arrays in c++?

968


Is java made in c++?

1027


What is the standard template library (stl)?

1661


How long it will take to learn c++?

1023


How do you print a string on the printer?

1015


What are built-in functions? What is the syntax for the definition?

1046


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2440


What you know about structures in C++?

1029


Why namespace is used in c++?

1033


What is enum class in c++?

1206