what does this mean?Code:typedef struct { int number; int count; }NUMBER;
what does this mean?Code:typedef struct { int number; int count; }NUMBER;
makes "that" an alias for "this", as a type. So you can use a shorter or more descriptive name instead of the formal name.Code:typedef this that;
so in this case, it creates a new data type "NUMBER" as an alias for "int number" and "int count".
so what about struct?
Well, no. "This" is
and "that" isCode:struct { int number; int count; }
hence NUMBER is now a synonym for the unnamed struct listed.Code:NUMBER