int main()
{
int ch = 65;
int *p = &ch;
char *c = reinterpret_cast<char *>(p);
cout<<*c<<endl;
cout<<*p<<endl;
cout<<"address:"<<c<<endl;
cout<<"address:"<<p<<endl;
return 0;
}
输出:
A
65
address:A // why content of c displaying cout<<"address:"<<c<<endl; instead of address
address:0x22ff24