// Code derived from Stroustrup's PPP2 book// § 3.9.2 Unsafe conversions// -beginning on p 82#include<iostream>usingstd::cout;intmain(){doublex=2.7;// lots of code...inty=x;// y becomes 2cout<<x<<'\n'//<<y<<'\n';inta=1000;charb=a;// b becomes –24 (on some machines)cout<<a<<'\n'//<<b<<'\n';}