|
1
2
3
4
5
6
7
8
9 |
#include <iostream>using
namespace
std;int
main(){ char
*p=NULL; p="computer"; cout<<p; return
0;} |
输出
computer
而不是字符串的地址,如果要输出地址
可以 用 printf("%p",p);
或
原文:http://www.cnblogs.com/newhcw/p/3527575.html