Iterate through a C array
arrays, c
Solution
You can store the size somewhere, or you can have a struct with a special value set that you use as a sentinel, the same way that `\0` indicates the end of a string.
Problem
I have an array of structs that I created somewhere in my program. Later, I want to iterate through that, but I don't have the size of the array. How can I iterate through the elements? Or do I need to store the size somewhere?