Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes C / C++ and the fly likes mergesort C program using recursion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "mergesort C program using recursion" Watch "mergesort C program using recursion" New topic
Author

mergesort C program using recursion

srinivas suri
Greenhorn

Joined: Nov 21, 2012
Posts: 4
/* I am not getting the output in a sorted order. Can someone help me where the bug is?? i guess it's somewhere in merge( ) .....but, i'm not able to figure it out..... THANKS a ton








srinivas suri
Greenhorn

Joined: Nov 21, 2012
Posts: 4
for(i=low;i<high;i++) //k will contain no.of elements in p
a[i]=p[i-low]; // //p[0] is copied to a[low] and so on..........
free(p);

i tried this one also....still, it doesn't work!
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: mergesort C program using recursion