65,211
社区成员
发帖
与我相关
我的任务
分享
#include<iostream>
using namespace std;
void F(int* a)
{
cout << "sizeof(a)=sizeof(void*)=" << sizeof(a) << endl;
}
int main()
{
int a[5];
cout << sizeof(a)/sizeof(a[0]) << endl;
F(a);
return 0;
}