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.
Simply you can use this snippet:
#include
#include
#include
using namespace std;
int main()
{
array values;
cout << "No. elements in valuea array: " << values.size() << " elements." << endl;
cout << "sizeof(myints): " << sizeof(values) << endl;
}
and here is the reference : http://www.cplusplus.com/reference/array/array/size/