Trace two aliases and a rebinding

Trace the program one statement at a time without using invented machine addresses. Draw a diagram after q = p and another after p = &b. Give a, b, the target of p and the target of q after each mutation, then write the exact output. Explain why rebinding p does not rebind q.

#include <stdio.h>
int main(void) {
    int a = 4, b = 9;
    int *p = &a;
    int *q = p;
    *p += 3;
    p = &b;
    *q = *p - 2;
    *p += *q;
    printf("%d %d %d %d\n", a, b, *p, *q);
    return 0;
}

