编辑代码

// #include <stdio.h>
// #include <math.h>
//     void main(){
//         typedef union{
//         long i;
//         int k[5];
//         char c;
//     } DATE;
//     struct date{
//         int cat;
//         DATE cow;
//         double dog;
//     } too;
//     DATE max;
//     printf("%d %d", sizeof(struct date),sizeof(max));
//     }

#include <stdio.h>

void main() {
    typedef union {
        long i;
        int k[5];
        char c;
    } DATE;

    struct date {
        int cat;
        DATE cow;
        double dog;
    } too;

    DATE max;

    printf("%lu %lu", sizeof(struct date), sizeof(max));
}