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.
#include int main () { using namespace std; int arr[] = {2, 7, 1, 111}; auto array_length = end(arr) - begin(arr); cout << "Length of array: " << array_length << endl; }