Write the code segment required to print the integer member item of each node in a linked list.

Refer to the following declarations

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


```
p = head;
while (p != NULL)
{
cout << p->item << endl;
p = p->link;
}
```

Computer Science & Information Technology

You might also like to view...

What is the key accomplishment of the UML?

What will be an ideal response?

Computer Science & Information Technology

There is no Save button in the ________ Toolbar in the Excel Web App

Fill in the blank(s) with correct word

Computer Science & Information Technology

The file extension to save a Presentation as a Show is:

A) .ppsx. B) .rtf. C) .pptx. D) .potx.

Computer Science & Information Technology

An if-else chain is stopped once a true condition is found.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology