"copying" strings into other array

This commit is contained in:
Dan Buch 2011-09-10 00:29:54 -04:00
parent 933a9a04fc
commit 1a1c89af7a

7
ex11.c
View File

@ -20,5 +20,12 @@ int main(int argc, char *argv[])
i++; i++;
} }
i = 0;
while(i < num_states) {
states[i] = argv[i];
printf("copied %s into state %d\n", states[i], i);
i++;
}
return 0; return 0;
} }