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.
you can find the length of an Array by following:
int arr[] = {1, 2, 3, 4, 5, 6}; int size = *(&arr + 1) - arr; cout << "Number of elements in arr[] is "<< size; return 0;