string的sizeof
int main()
{
string str[] = {"12345", "12", "12"};
cout << sizeof(string) << endl;
cout << sizeof(str) << endl;
return 0;
}
4
12
int main()
{
string str[] = {"12345", "12", "12"};
cout << sizeof(string) << endl;
cout << sizeof(str) << endl;
return 0;
}
4
12