> I believe enumerated constants start at 0 by default.
They do, and I pointed out your error.
If the user enters, 1 for apple. They then like 1 + 1 = 2 (Banana), Rather than 1 - 1 = 0 (Apple).
printf("What fruit do you like?\n");
iLike++; /* the enum constants start from 0 in this example */
In short you increased iLike when you should have decreased it. That means you go out-of-bounds when you try to access a "Lemon" for example. It's name would then be... according to you fruitname (out-of-bounds) -- No, it's fruitname. Run it through a debugger and see for yourself.
> As for the test, it was purposefully written such that it demonstrates the readability of enum constants versus "magic" numbers.
No excuse for errors