![]() |
|
|
| Subject:
HELP: Can anybody help with a linked list question?
Category: Computers > Programming Asked by: muckytakesrisks-ga List Price: $19.50 |
Posted:
29 Aug 2005 13:06 PDT
Expires: 02 Sep 2005 10:20 PDT Question ID: 561871 |
The following describes a structure for a node in a linked list
struct node
{
int data;
struct node * next;
};
typedef struct Node LISTNODE;
typedef LISTNODE *LISTNODEPTR;
Using the above structure and type definitions, write a C program to
merge two ordered lists of integers into a single ordered list of
integers. Your program should include the following functions:
(i) INSERT to insert data into the two ordered list
(ii) MERGE which recieves pointers to the first node of each of the
two lists to be merged, and returns a pointer to the first node of the
merged list.
(iii) PRINT LIST to print the contents of the merged list
Also explain the concept of apointer to a pointer, and why it is
necessary to use such a variable in link list manipulation. Illustrate
with a code segment from the above program. | |
| |
|
|
| There is no answer at this time. |
|
| Subject:
Re: HELP: Can anybody help with a linked list question?
From: bozo99-ga on 29 Aug 2005 17:16 PDT |
I think you'll find this book helpful. http://www.amazon.com/exec/obidos/tg/detail/-/0131103628/qid=1125360821/sr=8-1/ref=pd_bbs_1/104-5763972-2169568?v=glance&s=books&n=507846 |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
| Search Google Answers for |
| Google Home - Answers FAQ - Terms of Service - Privacy Policy |