Why and how to use 'constexpr' in c++?

Example:


  const int x = 10 * 10;
  

Solution:


  constexpr int x = 10 * 10; 
  

Beginner's Guide to C++