Is typedef struct needed in C?

Not so in the C programming language. The use of typedef most often serves no purpose but to obfuscate the data structure usage . Since only { struct (6), enum (4), union (5) } number of keystrokes are used to declare a data type there is almost no use for the aliasing of the struct.

Sizin İçin Seçtik  What is the syntax of declaration of structure?

Leave a Reply

Your email address will not be published. Required fields are marked *