Hey guys i was just looking @ some code on the forums and the question popped into my head "Why do people typedef structs?"
My understanding is that when you make a struct say for example:
's' would already be defined as a type struct and one could typeCode:struct s { int x; int y; };
so what does setting it's type do thats already not done? to me it seems redundent but i see it all the time so there must be reason for it.Code:s new_s1; s new_s2;



LinkBack URL
About LinkBacks




