// In this example we initialize with the non-narrowing initializer {}. // This makes it possible to illustrates the effect of static casting. #include #include int main(){ // Static casting int to double: int k{3}; double e{k}; // error (warning): narrowing conversion of k from int to double double f{static_cast(k)}; // f initialized to 3.0 std::cout << f <(d)}; // j initialized to 123 std::cout << j <