Examveda

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


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union