Question

2. Draw a memory diagram of the variables of the following code after the execution of the

code.

int M, N;

M = N = 4;

while (M > 0) {

N = M* 2;

M--;

}