>>for(int high = n-1; i= low; high-- )
Check the condition. The expression syntax is for(variable decleration,condition, operations)
When you say "i = low" as a condition, you are saying "i = 0" since low is 0, which is false since 0 is considered false.
firstPerson
Senior Poster
3,923 posts since Dec 2008
Reputation Points: 841
Solved Threads: 608