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...

int f() {
int I = 12;
int &r = I;
r += r / 4;
int *p = &r;
*p += r;
return I;
}
Referring to the sample code above, what is the return value
of the function "f()"?
a) 12
b) 15
c) 24
d) 17
e) 30

Answer Posted / guest

ans: 30 i.e 'e'

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is vector processing?

1126


Why do we use vector in c++?

1031


Is java a c++?

1010


What is a loop? What are different types of loops in c++?

1085


Can we get the value of ios format flags?

1095


What is else syntax in c++?

1148


What is c++ best used for?

1034


What is ios in c++?

1189


What is Destructor in C++?

1155


Will c++ be replaced?

1017


Explain the use of this pointer?

1132


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

1198


What is meant by entry controlled loop? What all C++ loops are exit controlled?

1032


What are virtual constructors/destructors?

965


Describe the setting up of my member functions to avoid overriding by the derived class?

1098