#include using namespace std ; int main() { int x1 = 10; float f1 = 10.5 ; x1 = (int)(f1); cout << "x1:" << x1 << endl ; //Undefined behavior //Not recommended const int x2 = 11 ; int* ptr1 = (int*) &x2 ; *ptr1 = 12 ; cout << "x2:" << x2 << endl ; }