Nguyễn Tuấn Dương
New member
Which is the correct syntax to use typedef for struct?
A.
B.
C.
D. All of the mentioned
A.
Code:
typedef struct temp
{
int a;
}TEMP;
Code:
typedef struct
{
int a;
}TEMP;
Code:
struct temp
{
int a;
};
typedef struct temp TEMP;