arning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rreturnmax;\routresult(ints,FILE*pf)\r{fprintf(pf,M\nThemaxinlink:%d\nn,s);\r)\rNODE*creatlink(intn,intm)\r{NODE*h,*p,*s;\rinti;\rh=p=(NODE*)malloc(sizeof(NODE));\rh->data=9999;\rfbr(i=l;i<=n;i++)\r{s=(NODE*)malloc(sizeof(NODE));\rs->data=rand()%m;s->next=p->next;\rp->next=s;p=p->next;\r)\rp->next=NULL;\rreturnh;\r)\routlink(NODE*h,FILE*pf)\r{NODE*p;\rp=h->next;\rfprintf(pf,"\nTheLIST:\n\nHEAD1');\rwhile(p)\r{fprintf(pf,"->%dH,p->data);\rp=p->next;}\rfprintf(pf,dAn1');\r)\rmain()\r{NODE*head;intm;\rsystemC'CLS'1);\rhead=creatlink(l2,100);\routlink(head,stdout);\rm=fun(head);\rprintf(n\nTheRESULT:\nM);\routresult(m,stdout);\r)\r789:;<\rb:p=h;#:p=h->next;\r(2):p=h>next;#:p=p->next;\r<PIXTEL_MMI_EBOOK_2005>3\r</PIXTEL_MMI_EBOOK_2005>89