#include
using namespace std;
int main()
{
string a(“Hello”);
int b=a.length();
cout<<sizeof(a);
cout<<" "<<b;
return 0;
}
Direct () Find the object space length string object should be occupied by seeking sizeof, less than the length of the seek