#include <iostream>
using namespace std;
int main()
{
//用字符数组指针获取指针指向的数组的元素个数
char str[] = "23333";
int len = 0;
char* s = str;
while (*s)
{
s++;
len++;
}
cout << len << endl;
return 0;
}