3 #define N_ELEM(x) (sizeof(x)/sizeof((x)[0]))
19 printf("Hello, %d!\n", i);
29 printf("Hello, %d!\n", i);
37 for (i = 0; i < 3; i++)
38 printf("Hello, %d!\n", i);
44 for (int j = 0; j < 3; j++)
45 printf("Hello, %d!\n", j);
51 char *names[] = {"one", "two", "three"};
52 for (int i = 0; i < N_ELEM(names); i++)
53 printf("Hello, %s!\n", names[i]);
59 struct list three = {"three"};
60 struct list two = {"two", &three};
61 struct list one = {"one", &two};
62 for (struct list *cur = &one; cur; cur = cur->next)
63 printf("Hello, %s!\n", cur->name);