Comment on Which is faster? while(1) {} or while(2) {}parentComments−kevin_thibedeau12ywhile() doesn't cast to bool in C. It compares to integer 0 which will become an unconditional jump after optimization.
Comments
while() doesn't cast to bool in C. It compares to integer 0 which will become an unconditional jump after optimization.