Explain the static and dynamic data structures.
Explain the static and dynamic data structures.
Static and dynamic data structures refer to the way in which data structures manage memory and handle size changes. Here’s a detailed explanation of both:
Static data structures are data structures that have a fixed size determined at compile time or initialization. Once allocated, their size cannot be changed dynamically during runtime.
Fixed Size:
Contiguous Memory Allocation:
Memory Allocation:
Access Time:
Example Data
Structures: