putting evil into my for-loop

This commit is contained in:
Dan Buch 2011-09-09 14:24:47 -04:00
parent 5a86af46b0
commit 41e45ff12a

4
ex10.c
View File

@ -4,9 +4,7 @@ int main(int argc, char *argv[])
{ {
int i = 0; int i = 0;
for(i = 0; i < argc; i++) { for(i = 0; i < argc && printf("arg %d: %s\n", i, argv[i]); i++);
printf("arg %d: %s\n", i, argv[i]);
}
char *states[] = { char *states[] = {
"California", "Oregon", "California", "Oregon",