Wednesday, August 10, 2011

C programming: arrays in ascending order?

say I have the array [5,7,1,9,2], I want it to be in ascending order so obviously the array would then be [1, 2, 5, 7, 9]. how can I do this using the bubblesort algorithm?

No comments:

Post a Comment