Question: how to make this program to run . and which one is correct from down below 2.Linked List elements: 2 3 5 6 7 8

how to make this program to run . and which one is correct from down below
2.Linked List elements: 2 3 5 6 7 8 void check double x) { Node* currNode head Node prevNode NULL, while (currNode !=NULL 8 X > currNode-data) prevNode = currNode. currNode currNode->next; Node* newNode = new Node; newNode - sdata if (prevNode NULL newNode->next head: head = newNode, else newNode->next = prevNode->next prevNode->next; newNode; length++; maino check(12); Show the elements of linked list after check (4) is executed. Single choice. (2 points) 2 3 5 6 7 8 10 2 3 5 6 7 8 10 2 3 5 6 7 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
