Instructions:
Directions: First, type the evaluated value of the right-hand side. Then click the location where that value will be stored
Score: 0 / 4, Points remaining: 4, Points lost: 0
Value:
- int f = 0;
- int c[4] = { 2, -10, -10, 10 };
- void foo(int r, int s) {
- c[2] = s + 1;
- c[f] = c[1];
- c[f] = s + 1;
- r = 0;
- print r;
- print s;
- print f;
- }
- int main() {
- int f = 2;
- foo(f, c[f]);
- print f;
- print c[0];
- print c[1];
- print c[2];
- print c[3];
- }
f
- 0
c
- 20
- -101
- -102
- 103
main
foo
f
- 2
r
- 2
s
- -10