I'm working with C, but I think this is a more low level question that isn't language specific.
How does the program correctly grab the right data with array[0] or array[6] regardless of what type of data it holds? Does it store the length internally or have some sort of delimiter to look for?