C++指针和字符串

char flowers[10]="rose';
cout<<flowers<<endl;

数组名是第一个元素的地址,

猜你喜欢

转载自www.cnblogs.com/hsy1941/p/10127228.html