cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Coding to find the median of an array
Page 2
Coding to find the median of an array
Pages:
1
2
Jul 21, 2014 at 3:53am UTC
lsk
(141)
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:
1
2