int main()
{char **p;
char *name[]={"basic","fortran","c++"};
p=name;
cout<<*p<<endl;
cout<<**p<<endl;
}
为啥结果分别是basci和b啊。
如果语句变成如下,输出又是什么?
int main()
{char **p;
char *a="basic";
p=a;
cout<<*p<<endl;
cout<<**p<<endl;
}
结果是basic和b吗?为啥?
慕粉3440107
_琉璃玉匣藏锦梦_0
灯心人
慕粉3302418
相关分类