Fixed For loop example so that jj is not incremented twice in each iteration of the loop

This commit is contained in:
Dave Caunt 2013-09-04 12:38:47 +01:00
parent 412b312c45
commit 01150e5309

View File

@ -160,7 +160,7 @@ int main (int argc, const char * argv[])
int jj; int jj;
for (jj=0; jj < 4; jj++) for (jj=0; jj < 4; jj++)
{ {
NSLog(@"%d,", jj++); NSLog(@"%d,", jj);
} // => prints "0," } // => prints "0,"
// "1," // "1,"
// "2," // "2,"