From bdeaaf48f5d0c4abb9b93019a9404824ec8e8064 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 19 Sep 2011 13:19:12 -0400 Subject: [PATCH] breaking by pointing at wrong array --- ex15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex15.c b/ex15.c index 1853556..d8cb037 100644 --- a/ex15.c +++ b/ex15.c @@ -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