假定有char * P="Hello";,要输出这个字符串的地址值的正确写法是
假定有char * P="Hello";,要输出这个字符串的地址值的正确写法是
A、cout<< *P
B、cout<C、cout<<&P
D、cout<<(void *)P
【正确答案】:D
Top