Is there a way to find how many values an array has? Detecting whether or not I\'ve reached the end of an array would also work.
A good solution that uses generics:
template inline unsigned arraysize(const T (&v)[S]) { return S; }
Then simply call arraysize(_Array); to get the length of the array.
arraysize(_Array);
Source