What's the difference between constexpr and const?
https://stackoverflow.com/questions/14116003/whats-the-difference-between-constexpr-and-const
WEBJan 2, 2013 · An overview of the const and constexpr keywords. In C ++, if a const object is initialized with a constant expression, we can use our const object wherever a constant expression is required. const int x = 10; int a[x] = {0}; For example, we can make a case statement in switch. constexpr can be used with arrays.
DA: 91 PA: 83 MOZ Rank: 24