#include using namespace std ; int main() { int x1 = 10; float f1 = 10.5 ; x1 = static_cast(f1); cout << "x1:" << x1 << endl ; //Compile time error //const cast problem const int x2 = 11 ; int* ptr1 = static_cast(&x2) ; *ptr1 = 12 ; cout << "x2:" << x2 << endl ; }