English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is there really any benefit to using typdefs in the form:
typedef struct MyStruct { int field1, int field2 };
typedef enum MyEnum { Apple, Banana, Orange};
versus
struct MyStruct { int field1, int field2 };
enum MyEnum { Apple, Banana, Orange };

2006-10-24 09:35:16 · 2 answers · asked by zen29sky 1 in Computers & Internet Programming & Design

2 answers

not sure but it may depend on the compiler. you may need the "typedef" on some but not on others.

2006-10-25 02:33:01 · answer #1 · answered by justme 7 · 0 0

I dont believe that there is. It has been a long time since I was in C++ though.

2006-10-24 09:37:04 · answer #2 · answered by E 5 · 0 0

fedest.com, questions and answers