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.
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.