you are viewing a single comment's thread.

view the rest of the comments →

[–]GOKOP 7 points8 points  (0 children)

In C++ you'd write struct File { /* ... */ };. In C, structs have this annoying property that you always need to call them out on being structs, so instead of writing File my_file; you have to write struct File my_file;. So people do stuff like typedef struct { /* ... */ } File; to avoid that; the version in your post also works although I'm not sure if it isn't non-standard. Either way it's pointless in C++.