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
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
What is a tree in c++?
Is c++ a software?
What is a .h file c++?
How one would use switch in a program?
What is the best way to take screenshots of a window with c++ in windows?
What is a flag in c++?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What is #include cmath?
What is a manipulator in c++?
Explain the difference between abstract class and interface in c++?
Write a c program for binary addition of two 8 bit numbers.
How come you find out if a linked-list is a cycle or not?
How can virtual functions in c++ be implemented?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?