I'm a beginner in C programming, however, I was thinking about what's the distinction between utilizing
typedef
when defining a design as a structure to not utilizing
typedef
. It appears to me like there's actually no distinction, they achieve a similar objective.
struct myStruct{
int one;
int two;
};
vs
typedef struct{
int one;
int two;
}myStruct;