1.
The following table represents a linked list using the same format as in the preceding problems. If the head pointer contains the value 44, what name is represented by
2.
Which of the following routines correctly inserts NewEntry immediately after the entry
called PreviousEntry in a linked list? What is wrong with the other routine? Routine 1:
1. Copy the value in the pointer
field of PreviousEntry into the
pointer field of NewEntry.
2. Change the value in the pointer
field of PreviousEntry to the
address of NewEntry.
Routine 2:
1. Change the value in the pointer
field of PreviousEntry to the
address of NewEntry.
2. Copy the value in the pointer
field of PreviousEntry into the
pointer field of NewEntry.