#include #include #include int main() { // This is a compiler feature int testArr[140] = {[0 ... 139]=10}; printf("%lu\n", sizeof(testArr)); for (size_t i = 0; i <= 2; i++) { std::cout << testArr[i] << std::endl; } // the initial value must be float float arrSum = std::accumulate(testArr, testArr + 140, 0.0); std::cout << arrSum << std::endl; }