'<=' versus '<' in for loop

This question already has an answer here:

  • Is < faster than <=? 13 answers

  • Those two loops are identical in execution. The second part of the for expression is the comparison to be used to determine continuation of the loop; since you are starting from zero and incrementing by one, these two expressions will always yield the same results.

    链接地址: http://www.djcxy.com/p/31556.html

    上一篇: 什么是更快(x <0)或(x ==

    下一篇: 'for'循环中'<='与'<''