Possible Duplicate:
Is the typedef-name optional in a typedef declaration?
I'm on Visual Studio 2008 and I saw this:
typedef enum testfoo
{
    enum1,
    enum2,
    enum3
};
Normally the C-style way of using typedef this way requires one additional piece (the name):
typedef enum testfoo
{
    enum1,
    enum2,
    enum3
} testfoo_name;
What is the former example doing? Strangely it compiles, but not sure what it's actually defining.
 
     
     
    