0

I discovered that we can define structures in C in different ways, now I am a little confused with the declaration of structures.

//0th way
struct struct0;

//1st Way
struct struct1{
    int m;
};

//2nd Way
struct struct2{
    int m;
}struct2;

//3rd Way
typedef struct{
    int m;
} struct3;

//4th way
typedef struct struct4{
    int m;
} struct4;
Adarsh Kumar
  • 467
  • 6
  • 11

0 Answers0