I had code that looked like this:
enum EEventID {
eEvent1,
eEvent2,
...
eEventN };
And it was reviewed and changed to
typedef enum {
eEvent1,
eEvent2,
...
eEventN } EEventID;
What is the difference between the two? Why make a change? When I looked at this question , the only mention of typedefs was omitted.
source
share