// Code derived from Stroustrup's PPP2 book// § 4.3.1 Constant expressions// -beginning on p 96#include<iostream>usingstd::cout;intmain(){constexprintmax=17;// a literal is a constant expressionintval=19;intmax2=max+2;// a constant expression (a const int plus a literal)intval2=val+2;// not a constant expression: it uses a variablecout<<max<<'\n'// output above variable values to console...<<val<<'\n'//<<max2<<'\n'//<<val2<<'\n';}