I have seen many programs consisting of structures like the one below
typedef struct { int i; char k; } elem; elem user;
Why is i
Using a typedef avoids having to write struct every time you declare a variable of that type:
typedef
struct
struct elem { int i; char k; }; elem user; // compile error! struct elem user; // this is correct