Question: Write a C + + code that creates and inserts a node with info 6 5 before the node with info 1 8 . Answer:

Write a C++ code that creates and inserts a node with info 65 before the node with info 18. Answer:
nodeType* q;ptr1= list->link;q = new nodeType;q->info =_______________;q->link =_______________;_______________= q;ptr1= new nodeType;ptr2= new nodeType;list = new nodeType;ptr1->info =12;list->link = ptr1;ptr2->info =18;ptr2->link = nullptr;list->link->link = ptr2;list->info =10;

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 Programming Questions!