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

Explain all the C++ concepts using examples.

1150


What is the difference between cin.read() and cin.getline()?

1015


Is it possible to have a recursive inline function in c++?

976


Difference between pass by value and pass by reference?

1084


Why do we need templates?

947


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2273


Do you know what is overriding?

1103


What are formatting flags in ios class?

1191


How do I write a c++ program?

1051


How many different levels of pointers are there?

1150


What is a stack? How it can be implemented?

1122


What is the type of 'this' pointer? When does it get created?

911


Why is null pointer used?

1113


What are single and multiple inheritances in c++?

1032


What is srand c++?

1050