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

Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

1134


Define a constructor?

1042


What is a constant? Explain with an example.

993


Can the creation of operator** is allowed to perform the to-the-power-of operations?

989


What are the 3 levels of programming languages?

1034


Is recursion allowed in inline functions?

1072


What is the difference between structures and unions?

1054


Why iomanip is used in c++?

1117


what is a class? Explain with an example.

1133


What is flag in computer?

1039


What is near, far and huge pointers? How many bytes are occupied by them?

1108


Can we inherit constructor in c++?

1071


What is the use of cmath in c++?

1054


What is namespace std; and what is consists of?

1283


What is the difference between while and do while loop? Explain with examples.

1103