![]() ![]() ![]() At the end of the structure's definition, before the final semicolon, you can specify one or more structure variables but it is optional. The structure tag is optional and each member definition is a normal variable definition, such as int i or float f or any other valid variable definition. The format of the struct statement is as follows − The struct statement defines a new data type, with more than one member. To define a structure, you must use the struct statement. You might want to track the following attributes about each book − ![]() Suppose you want to keep track of your books in a library. Structures are used to represent a record. Similarly structure is another user defined data type available in C that allows to combine data items of different kinds. Arrays allow to define type of variables that can hold several data items of the same kind. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |