// Code derived from Stroustrup's PPP2 book// § 4.3.1 Constant expressions// -beginning on p 96#include<iostream>usingstd::cout;constexprintmy_max=100;// rename variable to 'my_max'; std::max ambiguityvoiduse(intn){constexprintc1=my_max+7;// OK: c1 is 107// constexpr int c2 = n + 7; // error: we don’t know the value of c2cout<<my_max<<'\n'// output above variable values to console...<<n<<'\n'//<<c1<<'\n';}intmain(){use(42);}