This topic is now archived and is closed to further replies.


question on the insertion sort algorthm

Recommended Posts

alright i got the algorthim to work correctly but it if have an array declared like so int array[10]={10,9,4,5,6,7,0,0,0,0}; after its done running the sort it starts from the last index and sorts from their, i want it to put the elements in order starting at the first index

Share this post

Link to post
Share on other sites