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