Hows my sorting program?
http://pastebin.com/5hK6HSxd
imma borrow it so that I can make it print out that it's comparing index rather than the value and then I'll let you know.
>>57319156
Looks like the insertion sort.
protip: make functions to fill your tab with random values, sort it, and check if it's sorted.
Also, in C you can declare your iterating variable in the for loop now.
And indent your code properly, looks like shit right now.
This one now shows all the numbers in order, also declaring integers in for loops is complaining about c99 mode so I'll have to fix that later.
>>57322524
http://pastebin.com/Cv27MTTW
>>57319156
Use sane names for variables.