#include <iostream> #include <cstring> using namespace std; typedef struct{ int a; int arr[10]; } Test; int main () { string str = "12d"; cout << sizeof(string) << endl; cout << sizeof(Test) << endl; return 0; }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more