Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sort and merge two arrays

Status
Not open for further replies.

pablo99

Programmer
Dec 7, 2005
1
US
I have two arrays that have been declared with sentinel loops. I need a function to merge the two arrays together into one array, sort the final array into ascending order, and print the final array. The only other catch is I can't have any values appear twice in the final array.
 
Try Data Structures in C by Kruse for a good explanation of mergesort for arrays and linked lists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top