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


Please Help Members By Posting Answers For Below Questions

What is the real purpose of class – to export data?

612


Are c and c++ different?

534


What is the most useful programming language?

601


Which c++ compiler is best?

582


Are there interfaces in c++?

556






Define virtual constructor.

639


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.

2436


What are dynamic type checking?

612


Is main a class in c++?

556


When is the destructor called?

601


Why do we use classes in programming?

570


How to defines the function in c++?

610


How do you invoke a base member function from a derived class in which you have not overridden that function?

580


What is malloc in c++?

555


Explain what are the sizes and ranges of the basic c++ data types?

638