Question: how to make this program and run it . also tell me which of them down below is correct. c++ 3. Linked List elements: 2

 how to make this program and run it . also tell

how to make this program and run it . also tell me which of them down below is correct.

c++

3. Linked List elements: 2 3 5 6 7 8 void check (double x) { Node + currNode = head: ; Node prevNode NULL; while (currNode !=NULL 48 x > currNode->data) prevNode = currNode; currnode = currNode->next; Node* newNode = new Node; newNode->data if (prevNode NULL) { newNode->next = head, head = newNode; else newNode->next = prevNode->next; prevNode->next = newNode; length++; main() check(4): Show the elements of linked list after check(4) is executed. Single choice. (2 points) 2 3 5 6 7 8 2 3 5 6 7 8 4 2 3 4 5 6 7 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!