Assuming that last points to the last element in the linked list, write the code segment required to append a node to the end of this list.

Refer to the following declarations

```
struct node
{
int item;
node *link;
}
node *p, *head, *last;
int saveItem;
```

```
if (head != NULL)
{
saveItem = head->item;
p = head;
head = head->link;
delete p;
}
```

Computer Science & Information Technology

You might also like to view...

An Active Directory-integrated zone stores its data in one or more application directory partitions that are replicated along with other AD DS directory partitions

Indicate whether the statement is true or false

Computer Science & Information Technology

At which layer would you find errors that were caused by EMI?

A. Data Link B. Transport C. Physical D. Network

Computer Science & Information Technology