SyntaxFix
Write A Post
Hire A Developer
Questions
It is also possible to use enumeration.
typedef enum { typeNo1 = 1, typeNo2, typeNo3, typeNo4, NumOfTypes = typeNo4 } TypeOfSomething;