For constants, which are a list of possible values โโof a variable:
typedef enum {BLACK=0, WHITE, RED, YELLOW, BLUE} TColor;
In general, this helps you understand whether you are manipulating correctly, because compilers will warn you of implicit ebbs, among other things. This is more useful than just making your code more readable.
jpmuc
source share