标签:
void func(char str_arg[100]){ cout<<sizeof(str_arg)<<endl;}int main(int argc,char* argv[]){ char str[]="Hello"; char *p=str; cout<<sizeof(str)<<endl; cout<<sizeof(p)<<endl; func("test"); return 0;}正确答案: D 你的答案: B (错误)
标签:
原文地址:http://www.cnblogs.com/yanliang12138/p/4659891.html