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 size_type?
What is the difference between equal to (==) and assignment operator (=)?
Using a smart pointer can we iterate through a container?
What is the standard template library (stl)?
What is null pointer and void pointer?
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?
What is an inline function in c++?
What should main() return in c and c++?
How should a contructor handle a failure?
Write a function to find the nth item from the end of a linked list in a single pass.
How do you remove an element from a set in c++?
How is data hiding achieved in c++?
What is setw manipulator in c++?
What's the hardest coding language?
What is c++ manipulator?