![]() |
VOOZH | about |
Question 1
Question 2
int f(int &x, int c) {
c = c - 1;
if (c == 0) return 1;
x = x + 1;
return f(x, c) * x;
}
Question 3
Which of the following is FALSE about references in C++
References cannot be NULL
A reference must be initialized when declared
Once a reference is created, it cannot be later made to reference another object; it cannot be reset.
References cannot refer to constant value
Question 4
Question 5
Question 6
x = 20 ref = 30
x = 20 ref = 20
x = 10 ref = 30
x = 30 ref = 30
There are 6 questions to complete.