Chapter 8: Problem 10
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.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.