This is from C; there is no difference * in C ++.
* Ok, I lied, sorry .: P You can embarrass yourself if you want and make them different if you use typedef with the same name but with a different base type, but usually they are not different. Suppose Class already declared, though ... if Class not declared, the second one will not even compile.
However, the agreement should do:
typedef struct Class { ... } Class;
so it compiles in the same way in both C and C ++.
source share