Code: Select all
sizeof arr / sizeof arr[0]
inside of the sorting function, it returns with the value "1". But if I use it in the main function where the array is made in the first place, it works like a charm. Which makes me think that the array isn't passed to the function properly. But, how can it then sort the numbers? I'm greatly confused ^^
Anyway, here's my code
http://code.suck-o.com/74 (no I didn't comment it, since it's just a small assignment I couldn't be arsed to)