Linked List: if we search about x in the list the code in the pic will print 0x1000. Modify the code to print 0x104 ( last position of x) ? not occur in the linked list. NODEPTR search(NODEPTR list ,...


Linked List:


if we search about x in the list


the code in the pic will print 0x1000.



Modify
the code to print
0x104  ( last position of x) ?





not occur in the linked list.<br>NODEPTR search(NODEPTR list , int x)<br>{<br>NODEPTR p;<br>for(p=list ; p!=NULL; p=p-> link)<br>if (p->info ==x)<br>return (p);<br>If<br>SSS<br>OX2000<br>55<br>OKl04<br>GX lo00<br>return (NULL);<br>}<br>

Extracted text: not occur in the linked list. NODEPTR search(NODEPTR list , int x) { NODEPTR p; for(p=list ; p!=NULL; p=p-> link) if (p->info ==x) return (p); If SSS OX2000 55 OKl04 GX lo00 return (NULL); }

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here