const — runtime. constexpr — compile-time.
1const int x = 10;2constexpr int y = 10;3 4int arr1[x]; // Error (VLA)5int arr2[y]; // OK6 7constexpr int square(int n) {8 return n * n;9}10int arr3[square(5)]; // arr3[25]