That value is known at compile-time, if the compiler is aggressive enough in optimization. Depends on compiler.
Similarly, template metaprogramming could do rather complex calculations.
A support for VLA (variable lenght arrays) would allow runtime size determination. C has that. Next C++ standard might get it too (whether it is sane or not).