Created with Raphaël 2.1.2

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
  1. 0
c
  1. 20
  2. -101
  3. -102
  4. 103
main
foo
f
  1. 2
r
  1. 2
s
  1. -10