#include using namespace std; int main(){ int i; char *p = "This is a string"; i = reinterpret_cast (p); // cast pointer to integer cout << i; return 0;}