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 problems might the following macro bring to the application?
What is algorithm in c++ programming?
Write a function that swaps the values of two integers, using int* as the argument type?
Write about the members that a derived class can add?
write a function signature with various number of parameters.
What is c++ hiding?
What is ios :: in in c++?
What is pointer to array in c++?
What is an orthogonal base class in c++?
Why c++ is so important?
What are all predefined data types in c++?
Which operator cannot overload?
What is c++ & why it is used?
What is the difference between public and private data members?
Explain shallow copy?