Constant expressions are composed of components that can be evaluated at compile time. For example, 2 + 1.

Components of a constant expressions should have to be constant expression. We can create a variable which can be used as such component using constexpr keyword as shown below:

constexpr int value{1};

So, value can be used other constant expressions such as,

constexpr int result {2 * value};