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...

Export the final video to ______ if it is intended for DVD playback.

A. QuickTime B. Flash Video C. MPEG-1 D. MPEG-2 (DVD compliant) E. Streaming video

Computer Science & Information Technology

Write a complete Java program that prompts the user for a series of numbers to determine the smallest value entered. Before the program terminates, display the smallest value.

What will be an ideal response?

Computer Science & Information Technology