What is the syntax for declaring a structure in C?

Declaration. The general syntax for a struct declaration in C is: struct tag_name { type member1; type member2; /* declare as many members as desired, but the entire structure size must be known to the compiler.

Sizin İçin Seçtik  What is the difference between a union and a struct?

Leave a Reply

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