What is the syntax of structure declaration?

syntax: struct structure_name { datatype var1, datatype var2, . . . data type varn }; structurename var; struct is a keyword and must be used to declare a structure eg: struct employee { int empire, char name[20], float salary } employee e1; e1 is a structure variable of type employee which is a structure created.

Sizin İçin Seçtik  Hangi bankada Dolar kaç TL?

Leave a Reply

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