for loop VS while loop in programming languages, c++/java?

前端 未结 9 1730
难免孤独
难免孤独 2021-01-26 04:59

Which is better for performance? This may not be consistent with other programming languages, so if they are different, or if you can answer my question with your knowledge in a

9条回答
  •  广开言路
    2021-01-26 05:27

    I would suggest that you write a small example and time the difference. Then select whatever solution you find to be the quickest.

提交回复
热议问题