Home    Complete Archive    Feed    Contact    Search

Marketplace

529 Program

Posted on March 14, 2010.
529 ProgramCan someone help me build the C program, if they need to combine two null-terminated linked list if the nodes?

the new list alternate between these two nodes of the original.
tq

I guess you already have a "Node struct a LinkedList" struct "(or something that holds a pointer to the head of the list as in:" node * head; ") and you already have a method that may add or delete entire list.

Then you'll need to write a new function Add (...) that takes a linked list as argument and for each item in this list, add it to your existing list (until zero is reached, which means that the end of the list has been reached).

Adding a new (...) method can take in the head "pointer of the second list and use your current method add-whole-of-list.

It would be easier if you had a bit of code. Write some and we'll help.

Share |

Comments

There are no comments.

Leave a Comment

Your Name
Your Email
Comments
Human Check. Type 9273.

Newest
Regular Savings Accounts Uk
Roslyn Savings
Virginia Prepaid College
Compare High Interest
Atm Locator
Allpoint Atm
Direct Isa
Online Checking Account Rates

My Friends
Investment Boss
Loan Watchers
Insurance Fortune
Insurance Trouble
Galactic Insurance
Drink Aficionado
Worldwide Snacks
House Divine
Bake Things
Blood Sucking
Food Wick
Lets Food!