Trace record copies and structure pointers

Trace the two Record objects, the copy parameter and p. Write the exact output, rewrite target->score as an expression using * and ., and explain why ++p selects the second whole Record without assuming struct padding or field sizes. Which changes would disappear if award received both records by value?

#include <stdio.h>
typedef struct { int id; int score; } Record;
static void award(Record copy, Record *target) {
    copy.score += 20;
    target->score += copy.score / 10;
}
int main(void) {
    Record r[2] = {{11, 30}, {12, 50}};
    Record *p = r;
    award(r[0], &r[1]);
    ++p;
    p->score += r[0].score;
    printf("%d:%d %d:%d\n", r[0].id, r[0].score, p->id, p->score);
    return 0;
}

