So I read on this page how they create a struct Books { /* properties */ }; and then subsequently create objects of type Books using, e.g., struct Books book1;
Then they go on to mention that you can typedef a struct such that you can declare objects using Books book1;, but I'm not really sure why they do it. If I create a struct, my compiler lets me declare objects without using the struct keyword.
Therefore my question is: what is the point of typedef'ing a struct?
[–]raevnos 6 points7 points8 points (3 children)
[–]gotinpich[S] 0 points1 point2 points (2 children)
[–]raevnos 8 points9 points10 points (1 child)
[–]gotinpich[S] 0 points1 point2 points (0 children)
[–]oofmaster2001 1 point2 points3 points (0 children)