[prev] [index] [next]

Exercise: Print a List

Write a function that will
  • given a pointer to the first node in the list:
  • print all values stored in the list
  • separated by a space, terminated by '\n'
Use the following function interface:

void printList(NodeT *list) { ... }