Suppose that we say:

Cons lst = null;
for (int i = 0; i < 3; i++ )
    lst = cons( i, lst );
lst = nreverse(lst);

What is the value of lst?

  • A: (1 2 3)
  • B: (3 2 1)
  • C: (0 1 2 3)
  • D: (0 1 2)
  • E: (2 1 0)

    Answer

    Contents    Page-10    Prev    Next    Page+10    Index