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

How can you differentiate between inheritance and implementation in c++?

1269


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1074


What is encapsulation in c++ with example?

1041


What is a constant? Explain with an example.

1080


What are the various access specifiers in c++?

1084


What is the meaning of c++?

1070


How can we check whether the contents of two structure variables are same or not?

1121


What is the basic difference between C and C++?

1232


Explain linked list using c++ with an example?

1138


What do you mean by late binding?

1203


Implement stack operations with pointers with appropriate exception checks.

1022


What is ofstream c++?

1149


How can you link a c program with a c function?

1127


When should we use multiple inheritance?

1096


Which is the best c++ compiler?

1130