Quiz 2 Solution

CS23

  1. What is backtracking?

    Guessing at a solution and backing up if it turns out to be wrong.

  2. Write the idiomatic code for traversing a pointer-based linked list with a for loop.
    for (tmp = list; tmp != NULL; tmp = tmp->next)
       ;
    



Thomas P. Kelliher
Mon Mar 18 15:39:19 EST 1996
Tom Kelliher