Coding to find the median of an array

Pages: 12
Yes, in the right way you should use 'index'.
But just a luck that you assigned i = index in for (i = 0; i < index; i++) .

So when you used 'i' instead of 'index', it's looked like there's not wrong.
But in real, it's wrong.
Topic archived. No new replies allowed.
Pages: 12