#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char str[50]="hello";
char *p=str;
cout<<strlen(str)<<endl;
cout<<sizeof(str)<<endl;
cout<<strlen(p)<<endl;
cout<<sizeof(p)<<endl; //得到指针的大小
system("pause");
return 0;
}
//32位输出如下:
//64位输出如下: