const — runtime. constexpr — compile-time.
1const int x = 10;2constexpr int y = 10;3int arr[y]; // OK