I was searching for the reason behind using hexadecimal in typedef enum
in C.
I followed the following link, but there are two answers: c, obj c enum without tag or identifier
LearnCocos2D says that, "there's no gain to use hex numbers and in particular there's no point in starting the hex numbers with a through f (10 to 15). "
Sulthan says that, "Hexadecimal numbers are commonly used when the integer is a binary mask". I searched for binary mask and came to understand that, its a technique used in bitmap gaming from following link https://en.wikipedia.org/wiki/Mask_(computing)
If sulthan is right, kindly help me understand it.
I don't have enough reputation to comment, so I created this as new question.
See Question&Answers more detail:os