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
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.