You are here:

C/programming using c

Advertisement


Question
how do you code a program for merge sort eg like trying to sort numbers like(89, 72 , 3, 15, 21, 57, 61, 44, 19, 98,  5, 77, 39, 59, 61)

Answer
First try to understand what is merge sort. This is explained in all the "Data Structures" books.
Once you know the concepts, write it down in English and later convert this to a step by step process. Now, you are ready with your algorithm.
After that, you can easily convert this to a C code.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.