A data structure is a named data item that consists of logically related variables, called members. In many programming languages, data structures are called records, and the variables within records are called fields. In InstallScript, data structures are similar in form and function to structures in C.
A data structure is a named data item that consists of logically related variables, called members. In many programming languages, data structures are called records, and the variables within records are called fields.
The most simple form of storage is called a variable. It's an area of memory that stores one item of data, such as a number or a character.
Variables
The most simple form of storage is called a variable. It's an area of memory that stores one item of data, such as a number or a character Arrays
Sometimes you might want to have variables to represent collections of similar items or objects - for example Associative Arrays / Dictionaries
With a normal array, as described above, the indexes are numbers, e.g. day[0] is Sunday. In an associative array with can use a string or type of index More Complicated Structures
Some types of data may require more complicated structures to store them. Languages such as C++ allow you to create compound data-structures (e.g Data Abstraction
Your code should be written in such a way that the details of how the data are stored are hidden from the rest of the code - this is known as data Constants
Finally, most programming languages also support the use of constants