Solved

Which of the Following Statements Is Used to Insert a New

Question 3

Multiple Choice

Which of the following statements is used to insert a new node,referenced by newNode,at the end of a linear linked list?


A) newNode.setNext(curr) ;
Prev.setNext(newNode) ;
B) newNode.setNext(head) ;
Head = newNode;
C) prev.setNext(newNode) ;
D) prev.setNext(curr) ;
NewNode.setNext(curr) ;

Correct Answer:

verifed

Verified

Related Questions