Are the following equivalent in C?
// #1 struct myStruct { int id; char value; }; typedef struct myStruct Foo; // #2 typedef struct { int id; char value; } Foo;
If not, which one should I use and when?
(Yes, I have seen this and this.)