Trace a nested record returned by a function

Trace the function parameter, original and moved as three record objects, and give the exact output. Explain both dots in moved.date.day. Identify which fields are copied and which are edited. If the call were move_one_day(original); with the result discarded, what would original contain afterward? This exercise deliberately uses day 12, so month rollover is outside its contract; do not describe the function as a complete calendar routine.

#include <stdio.h>
typedef struct {
    int day, month, year;
} Date;
typedef struct {
    int code;
    Date date;
    int seats;
} Booking;
static Booking move_one_day(Booking b) {
    ++b.date.day;
    b.seats -= 1;
    return b;
}
int main(void) {
    Booking original = {17, {12, 11, 2026}, 4};
    Booking moved = move_one_day(original);
    printf("original=%d %d/%d/%d seats=%d\n", original.code,
           original.date.day, original.date.month, original.date.year, original.seats);
    printf("moved=%d %d/%d/%d seats=%d\n", moved.code,
           moved.date.day, moved.date.month, moved.date.year, moved.seats);
    return 0;
}

