69,369
社区成员
发帖
与我相关
我的任务
分享
void func(char p[10]);
#include <iostream>
using namespace std;
void f(char p[])
{
cout<<sizeof(p)<<endl;
}
int main()
{
char p[15]="helloworld";
f(p);//输出4
cout<<sizeof(p)<<endl;//输出15
return 0;
}