Saturday, May 22, 2010

How do i declare and manipulate a char array with dimensions 1000000 x 11 in the C programming language?

In our programming class, we were asked to get 1000000 words 11 characters long and sort them using mergesort, quicksort, heapsort and radix sort.Unfortunately, these sorting algorithms use arrays. Need lots of help in this one. Thanks.

How do i declare and manipulate a char array with dimensions 1000000 x 11 in the C programming language?
Sounds fairly straight forward...





just an array of 1,000,000 strings should do the job.





#include %26lt;string.h%26gt;





string array[1000000];





I could write a program to bubble sort if you'd like, that's quick an easy to write... other are a bit more tricker... and never heard of radix sort...?!
Reply:Have a look at arrays in http://computer.howstuffworks.com/c10.ht...


No comments:

Post a Comment