| Static |
Dynamic |
|
| PRO |
Fast Access ("Random access") get() is O(1). |
Allocate only memory that will be used. Allocate as much memory as needed. |
| CON |
Fixed amount of space. |
Slower access, get() is O(n). |
| Example |
Calendar - has twelve months Can directly access any month |
Customer transactions - unknown amount Must access them sequentially, but don't need to know how many in advance. |