What are the different mechanisms for storage re of structured data types?
Answers
Answer:
Structured data objects and Arrays
We have seen in previous sections that objects of simple data type can only store data of one type. That is why they are called simple objects. Whilst an array can provide storage for many data elements, each of these elements must be of the same type within any one array.
There are many situations where we would like to store data of different types within the same data structure. If we were developing a data base program to store details of club membership, for instance, we would need to keep records of lots of individual members each of which has a name, address, age and telephone number. It would be convenient if we could refer to each members record as a single data object. On their own, simple data objects and arrays will not let us do this.
A structured data type is a compound data type which falls under user-defined category and used for grouping simple data types or other compound data types. This contains a sequence of member variable names along with their type/attributes and they are enclosed within curl brackets.
✔️☺️✔️