Based on my little bit of learning typedef
is used to create an alias. But I see code where the "alias" is the exact same name as the original. What is the use here?
e.g.
typedef struct Dog{
bool hasLegs;
} Dog;
Based on my little bit of learning typedef
is used to create an alias. But I see code where the "alias" is the exact same name as the original. What is the use here?
e.g.
typedef struct Dog{
bool hasLegs;
} Dog;