void Func(char str_arg[100]){ printf("%d\n", sizeof(str_arg)); } int main(void){ char str[] = "Hello"; printf("%d\n", sizeof(str)); printf("%d\n", strlen(str)); char*p = str; printf("%d\n", sizeof(p)); Func(str); }
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题