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

Which loop is faster?

Name: Anonymous 2012-01-16 8:59


for (I = 0; I < N; I++)
  for (J = 0; J < M; J++)
    update(Xs[I][J]);

or

for (I = 0; I < N; I++)
  for (J = 0; J < M; J++)
    update(Xs[J][I]);

???

Name: Anonymous 2012-01-16 12:14

>>12,13
Listen here, you two fagprecipitations.

If i == 10, then int var = ++i; results in var == 11, while int var = i++; results in var == 10. These two do not result in the same thing.

NOW GET THE FUCK OUT.

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