6-Static & Dynamic Data Structure
6-Static & Dynamic Data Structure
Data structure
Data structure is a way of storing and organizing data efficiently such that the required operations
on them can be performed be efficient with respect to time as well as memory. Simply, Data
Structure are used to reduce complexity of the code.
Static Data structure has fixed memory size whereas in Dynamic Data Structure, the size ca n be
randomly updated during run time which may be considered efficient with respect to memory
complexity of the code. Static Data Structure provides easier access to elements with respect to
dynamic data structure. Unlike static data structures, dynamic data structures are flexible.