Draw the caller and callee memory snapshot

Trace the exact output. Draw a labelled conceptual memory snapshot at three moments: immediately before adjust is called, inside adjust just before its printf, and in main just after the call returns. Show main's x, adjust's parameter x, both distinct objects named total, and y where relevant. Use symbolic object names rather than inventing physical addresses.

    State which total each source occurrence names, which objects still exist after the call, and how the return value reaches y. A variable whose initialization is not yet complete must not be shown as already containing the returned result.

#include <stdio.h>
int total = 100;
int adjust(int x)
{
    int total = x + 1;
    x += 2;
    printf("callee x=%d total=%d\n", x, total);
    return total;
}
int main(void)
{
    int x = 4;
    int y = adjust(x);
    printf("caller x=%d y=%d total=%d\n", x, y, total);
    return 0;
}

