
#include <stdio.h>


int main(int argc, char* argv[]) {

    struct myStruct {
        int a;
        long int b;
        char c[500];
    };

    union myUnion {
        int a;
        long int b;
        char c[500];
    };

    myStruct x, *ptr;
    struct myStruct y;
    myUnion z;

    printf("Size of x = %d", sizeof(x));
    printf("Size of ptr = %d", sizeof(ptr));
    printf("Size of y = %d", sizeof(y));
    printf("Size of z = %d", sizeof(z));

}
