〜将char的地址保存到变量中? 〜

时间:2015-10-26 06:17:09

标签: memory

<interactive>:33:6: Not in scope: ‘argument’
<interactive>:33:15: Not in scope: ‘arguments’

将在屏幕上显示Memory Location。如何将该内存位置保存为double或int变量?

char characterA = 'a';     
cout<<"Address of characterA: "<< static_cast<void *>(&characterA) <<endl;

〜谢谢

0 个答案:

没有答案