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.
Is there a way to find how many values an array has?
Yes!
Try sizeof(array)/sizeof(array[0])
Detecting whether or not I've reached the end of an array would also work.
I dont see any way for this unless your array is an array of characters (i.e string).
P.S : In C++ always use std::vector
. There are several inbuilt functions and an extended functionality.