Which is the correct syntax to use typedef for struct?

Which is the correct syntax to use typedef for struct?
A.
Code:
    typedef struct temp
    {
        int a;
    }TEMP;
B.
Code:
    typedef struct
    {
        int a;
     }TEMP;
C.
Code:
    struct temp
    {
        int a;
    };
    typedef struct temp TEMP;
D. All of the mentioned
 

Tìm kiếm

Back
Top