What is a syntax of structure?

Syntax of struct struct structureName { dataType member1; dataType member2; … }; For example, struct Person { char name[50]; int citNo; float salary; }; Here, a derived type struct Person is defined. Now, you can create variables of this type.

Sizin İçin Seçtik  How do you declare a structure in C?

Leave a Reply

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