Write the code to insert a node at the end of a linked list if the pointer to the current end node is called last.

What will be an ideal response?

last->link = new node;
last->link->link = NULL;

NOTE: other names are possible for node and link.

Computer Science & Information Technology

You might also like to view...

Match the following terms to their meanings:

I. Field List II. Undo III. Grouping IV. Landscape orientation V. Tab order controls A. Makes it easier to format the controls and keeps the controls aligned B. Tab Index, Tab Stop, Auto Tab C. Displays more data across the page D. Click this if you move the controls to an incorrect position on the form E. Double-click each field name here to add the fields to the form

Computer Science & Information Technology

Windows machines with built-in networking support will automatically communicate over the network via ____.

A. NETBEUI B. NETBIOS C. IPX/SPX D. TCP/IP

Computer Science & Information Technology