1
C - C++ / Re: Rearranging Numbers in Ascending Order
« on: January 16, 2016, 05:07:02 AM »
Am I the only one who doesn't see this for loop going on for 10 times ? it goes from 1 to strictly 10, so 9 times if I'm not mistaken. Also this last printf line seems to print the memory address of the array K, rather than elements of that array, hence the big number. You'll probably wanna use another for loop to print the elements of the K array, once you get it to initialize properly (place the numbers in ascending orders). 2cents.
edit: derped.
edit: derped.