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 size_type?

558


What is the difference between equal to (==) and assignment operator (=)?

587


Using a smart pointer can we iterate through a container?

572


What is the standard template library (stl)?

636


What is null pointer and void pointer?

637






Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

627


What is an inline function in c++?

643


What should main() return in c and c++?

538


How should a contructor handle a failure?

698


Write a function to find the nth item from the end of a linked list in a single pass.

577


How do you remove an element from a set in c++?

589


How is data hiding achieved in c++?

582


What is setw manipulator in c++?

609


What's the hardest coding language?

585


What is c++ manipulator?

565