Inactive Tutor answered 01/27/21
There will be compiler errors.
Llooks like you are trying to insert into a linked list
Inactive Tutor
Function and type declarations belong in a separate header file. Then #include "header.h"01/27/21
Andrew H.
asked 01/27/21output? What happens if we call function?
printf(“\n\n%d\n\n”, funC(pList));
//pList: 20 40 50 10
int funC( NODE *pList )
{
NODE *p1;
NODE *p2;
p2 = NULL;
p1 = pList;
while (p1->link)
{
p2 = p1;
p1 = p1->link;
}
p1->link = pList;
printf(“\n\n%d\n\n”, p1->link->data);
return p2->data;
}
Inactive Tutor answered 01/27/21
There will be compiler errors.
Llooks like you are trying to insert into a linked list
Inactive Tutor
Function and type declarations belong in a separate header file. Then #include "header.h"01/27/21
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Andrew H.
Can you explain which part causes these errors?01/27/21