+ 1

Which is faster in c++ : "while" or "for"?

30th Apr 2018, 10:38 AM
Kanishk Namdev
Kanishk Namdev - avatar
2 Answers
+ 3
there isn't any set speed for either as they function on different principles, and the only reason to use one over the other is a specific condition, depends on what you need in your code
30th Apr 2018, 11:32 AM
hinanawi
hinanawi - avatar
0
Yeah I agree with hinanawi
30th Apr 2018, 11:56 AM
Aaron Stone
Aaron Stone - avatar