Typedef struct with pointer - C++ Forum - cplusplus.com - The C++ Resources Network
I can think of 2 reasons why C programs have above syntax. One is perhaps to give C programmers what C++ programmers have in their classes syntax. e.g class PAINTSTRUCT {}; PAINTSTRUCT a; //C++ program typedef ....{} PAINTSTRUCT; PAINTSTRUCT a ......