Even though the enums are assigned sequentially, you could do something like this:
char * fruitstrings[6];
/* This part must be in a function! */
fruitstrings = "orange";
fruitstrings[apple] = "apple";
Even though the enums are assigned sequentially, you could do something like this:
char * fruitstrings[6];
/* This part must be in a function! */
fruitstrings = "orange";
fruitstrings[apple] = "apple";