1. initial
// https://en.cppreference.com/w/c/language/array_initialization
2. get max or min element
int a[6] = { 1, 45, 54, 71, 76, 12 };
auto b = *max_element(a, a+6);
auto c = *min_element(a, a+6);
3. get array size
int myNumbers[5] = {10, 20, 30, 40, 50};
int getArrayLength = sizeof(myNumbers) / sizeof(int);
标签:min,int,max,myNumbers,element,array
From: https://www.cnblogs.com/shendaw/p/16998672.html