#include <stdio.h>
struct Data{
int day;
int year;
int month;
};
struct {
int day;
int year;
int month;
}ryaku ={31,2025,1};
int main(void) {
struct Data hinichi;
hinichi.day=9;
hinichi.year=2025;
hinichi.month=1;
printf("day%d\n",hinichi.
day); printf("year%d\n",hinichi.
year); printf("month%d\n",hinichi.
month); struct Data today = {9,2025,1};
printf("year%d\n",today.
year); printf("month%d\n",today.
month); struct Data happy = today;
printf("year%d\n",happy.
year); printf("month%d\n",happy.
month); printf("year%d\n",ryaku.
year); printf("month%d\n",ryaku.
month); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgogc3RydWN0IERhdGF7CglpbnQgZGF5OwoJaW50IHllYXI7CglpbnQgbW9udGg7Cn07CnN0cnVjdCB7CglpbnQgZGF5OwoJaW50IHllYXI7CglpbnQgbW9udGg7Cn1yeWFrdSA9ezMxLDIwMjUsMX07CmludCBtYWluKHZvaWQpIHsKCXN0cnVjdCBEYXRhIGhpbmljaGk7CmhpbmljaGkuZGF5PTk7CmhpbmljaGkueWVhcj0yMDI1OwpoaW5pY2hpLm1vbnRoPTE7CnByaW50ZigiZGF5JWRcbiIsaGluaWNoaS5kYXkpOwpwcmludGYoInllYXIlZFxuIixoaW5pY2hpLnllYXIpOwpwcmludGYoIm1vbnRoJWRcbiIsaGluaWNoaS5tb250aCk7CnN0cnVjdCBEYXRhIHRvZGF5ID0gezksMjAyNSwxfTsKcHJpbnRmKCJkYXklZFxuIix0b2RheS5kYXkpOwpwcmludGYoInllYXIlZFxuIix0b2RheS55ZWFyKTsKcHJpbnRmKCJtb250aCVkXG4iLHRvZGF5Lm1vbnRoKTsKc3RydWN0IERhdGEgaGFwcHkgPSB0b2RheTsKcHJpbnRmKCJkYXklZFxuIixoYXBweS5kYXkpOwpwcmludGYoInllYXIlZFxuIixoYXBweS55ZWFyKTsKcHJpbnRmKCJtb250aCVkXG4iLGhhcHB5Lm1vbnRoKTsKcHJpbnRmKCJkYXklZFxuIixyeWFrdS5kYXkpOwpwcmludGYoInllYXIlZFxuIixyeWFrdS55ZWFyKTsKcHJpbnRmKCJtb250aCVkXG4iLHJ5YWt1Lm1vbnRoKTsKCXJldHVybiAwOwp9Cg==