Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Incrementing i

Name: Anonymous 2009-03-16 8:40

i++; versus i+=1; versus i=i+1;

Discuss.

Name: Anonymous 2009-03-16 12:06

>>2
>>3
Thread should've ended here. This is clearly the best solution, which will likely result in just one machine instructions, while all other variations need compiler optimizations turned on to produce good code.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List