Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
Is < 0 faster than == -1?
1
Name:
Anonymous
2011-07-13 14:00
If checking some kind of return value, isn't the first one faster since some flag will be set already so you don't have to do an extra comparison?
30
Name:
Anonymous
2011-07-14 8:20
Using < is convenient in for loops because it allows you to change the stepping.
<code>
for(i=0;i<10;i+=3); still works.
</code>
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List