#include <iostream> using namespace std; int main() { char * pt; pt = new char('x'); cout << *static_cast<int*>(pt); return 0; }
prog.cpp: In function ‘int main()’: prog.cpp:8:31: error: invalid static_cast from type ‘char*’ to type ‘int*’
Standard output is empty