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.
Avoid using the type together with sizeof, as sizeof(array)/sizeof(char), suddenly gets corrupt if you change the type of the array.
sizeof(array)/sizeof(char)
In visual studio, you have the equivivalent if sizeof(array)/sizeof(*array). You can simply type _countof(array)
sizeof(array)/sizeof(*array)
_countof(array)