breaking by pointing at wrong array

This commit is contained in:
Dan Buch 2011-09-19 13:19:12 -04:00
parent 8c6e140dad
commit bdeaaf48f5

2
ex15.c
View File

@ -21,7 +21,7 @@ int main(int argc, char *argv[])
printf("---\n");
// setup the pointers to the start of the arrays
int *cur_age = ages;
int *cur_age = (int*)names;
char **cur_name = names;
// second way using pointers