#include #include int main(int argc, char** argv) { // char* array1 = malloc(256); // printf("sizeof(array1) is %d\n", sizeof(array1)); // char array2[128]; // char* array2_cpy = array2; // printf("sizeof(array2) is %d, sizeof(array2_cpy) is %d\n", sizeof(array2), sizeof(array2_cpy)); struct test{ double a; //8 char* b; //8 int c[10]; //4 * 10 = 40 }; // 56 struct test a_test; struct test* a_test_ptr = &a_test; printf("sizeof(struct test) is %d, sizeof(a_test) is %d, sizeof(a_test_ptr) is %d\n",sizeof(struct test), sizeof(a_test), sizeof(a_test_ptr)); return 0; }