A data structure is a structured set of variables associated with one another in different ways, cooperatively defining components in the system and capable of being operated upon in the program. As stated earlier, the following operations are done on data structures:
Data organisation or clubbing
Manipulating selections for information.
In linear data structures, values are arranged in linear fashion. Arrays, linked lists, stacks and queues are examples of linear data structures in which values are stored in a sequence.
This type is opposite to linear. The data values in this structure are not arranged in order. Tree, graph, table and sets are examples of non-linear data structures.
In this type of data structures, values of the same types of data are stored, as in an array.
In dynamic data structures such as references and pointers, size and memory locations can be changed during program execution.
Static keyword in C is used to initialize the variable to 0 (NULL). The value of a static variable remains in the memory throughout the program.