假设
char a='s';
现在我想在char指针p中存储变量a的地址
char *p=&a;
如果我使用cout << p;然后我得到值s,而不是地址!
cout << p;
任何人都可以解释为什么会这样?
c++ pointers
c++ ×1
pointers ×1