mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Fixed For loop example so that jj is not incremented twice in each iteration of the loop
This commit is contained in:
parent
412b312c45
commit
01150e5309
@ -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,"
|
||||||
|
Loading…
Reference in New Issue
Block a user