![]() Declaration of a structure specifies the format/schema/template of the user defined data type. Keyword struct is used to declare a structure. By using a structure, we can store all the details an employee into a structure variable, and we can define an array of structures to store details of all employees.Ĭlick on the links below to know more about structures in C We can create a custom data type, which can store all data about a employee under single name.Ĭ programming language provide support for defining a custom data type(structure) which can aggregate and store all related information about an entity. ![]() We want to store following information for every employee: Suppose we want to store information about all employees of a company. Generally we want to store more than one information about any object. Each variable declared in structure is called member. A structure variable can store multiple variables of different data types. Structure in C programming language is a user defined data type that groups logically related information of different data types into a single unit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |