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
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
Define a constructor?
What is a constant? Explain with an example.
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What are the 3 levels of programming languages?
Is recursion allowed in inline functions?
What is the difference between structures and unions?
Why iomanip is used in c++?
what is a class? Explain with an example.
What is flag in computer?
What is near, far and huge pointers? How many bytes are occupied by them?
Can we inherit constructor in c++?
What is the use of cmath in c++?
What is namespace std; and what is consists of?
What is the difference between while and do while loop? Explain with examples.