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 the real purpose of class – to export data?
Are c and c++ different?
What is the most useful programming language?
Which c++ compiler is best?
Are there interfaces in c++?
Define virtual constructor.
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
What are dynamic type checking?
Is main a class in c++?
When is the destructor called?
Why do we use classes in programming?
How to defines the function in c++?
How do you invoke a base member function from a derived class in which you have not overridden that function?
What is malloc in c++?
Explain what are the sizes and ranges of the basic c++ data types?