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

Which coding certification is best?

988


Why do we use string in c++?

909


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2469


What is difference between class and function?

1055


C is to C++ as 1 is to a) What the heck b) 2 c) 10

1030


How do you declare A pointer to a function which receives nothing and returns nothing

1198


How long will it take to learn programming?

1016


What jobs can you get with a c++ certification?

1006


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

1144


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

1050


What is the benefit of learning c++?

959


What is abstraction in c++?

1309


Specify different types of decision control statements?

826


What is cin clear () in c++?

1168


What is the difference between function overloading and operator overloading?

1066