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
What is vector processing?
Why do we use vector in c++?
Is java a c++?
What is a loop? What are different types of loops in c++?
Can we get the value of ios format flags?
What is else syntax in c++?
What is c++ best used for?
What is ios in c++?
What is Destructor in C++?
Will c++ be replaced?
Explain the use of this pointer?
How do you declare A pointer to a function which receives nothing and returns nothing
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What are virtual constructors/destructors?
Describe the setting up of my member functions to avoid overriding by the derived class?