- A fixed array has a predefined size.
- To modify the content of a fixed array, create a slice (
[]T
) that acts as a pointer to the array's memory.
- Use
std.ArrayList
(or similar structures) for dynamically sized arrays. - You need to initialize it with an allocator using
.init(allocator)
. - Remember to free the memory using
.deinit()
when done.