If I have more than one enum, eg:
enum
enum Greetings{ hello, bye, how }; enum Testing { one, two, three };
How can I enforce th
This is the answer you don't want to hear. In C, you can't really. Now if your C code were in the "Clean C" subset of C++, you could compile with the C++ compiler to get all the errors of using the wrong enum/int values, etc.