- Joined
- May 7, 2009
- Messages
- 228
Do arrays take up space for the full 4096 elements, even if you don't use them?
For example, suppose you had an array, but you only used the first 6 values. Would it still take up 16kb worth of space?
If so, is it better to combine arrays to use less space? For example, instead of using 7 arrays with 6 elements each, use one array with 42 elements?
For example, suppose you had an array, but you only used the first 6 values. Would it still take up 16kb worth of space?
If so, is it better to combine arrays to use less space? For example, instead of using 7 arrays with 6 elements each, use one array with 42 elements?