Which of the following statements inserts a new node, pointed to by newPtr, at the end of a linear linked list?
a. newPtr->next = cur;
prev->next = newPtr;
b. newPtr->next = head;
head = newPtr;
c. newPtr->next = NULL;
d. prev->next = cur;
newPtr->next = cur;
a. newPtr->next = cur;
prev->next = newPtr;
Computer Science & Information Technology
You might also like to view...
To append records from an Excel worksheet to an existing database table, the field names must be identical.
a. true b. false
Computer Science & Information Technology
A strength of UNIX is its true multitasking capabilities.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology