Which is the correct syntax to use typedef for struct?
A.
typedef struct temp
{
int a;
}TEMP;
B.
typedef struct
{
int a;
}TEMP;
C.
struct temp
{
int a;
};
typedef struct temp TEMP;
D. All of the mentioned
Answer: Option D
A.
typedef struct temp
{
int a;
}TEMP;
B.
typedef struct
{
int a;
}TEMP;
C.
struct temp
{
int a;
};
typedef struct temp TEMP;
D. All of the mentioned
Answer: Option D
Which of the following can be a member of a structure?
A. Function
B. Another structure
C. Enumeration
D. All of the above
Join The Discussion