+ 1

Which loop is the fastest; for, while or do while?

15th Jan 2017, 10:33 AM
Srishti Sahni
Srishti Sahni - avatar
2 Respostas
+ 7
Most compilers would turn that into assembly code that runs as fast for any.
15th Jan 2017, 10:42 AM
Karl T.
Karl T. - avatar
+ 3
The difference could more result of the one the most suitable/relevant to/for yours tasks priorities ^^ ( could be readability of code, -- which rejoin often speed optimizations anyway -- when you see how much the gain can be negligible... )
15th Jan 2017, 10:59 AM
visph
visph - avatar