Question

Give the corresponding snapshots of memory after each of the following set of statements has been executed.

1.

{eq}int x1;\

x1=3+4%5-5;quad x1=__\

int x(1), z(5);quad x=__quad z=__\

z=z/++x;quad quad quad quad quad quad Now z=__

{/eq}

—

2.

{eq}double a(3.8),zquad quad quad a=__quad z=__\

int n(2),y; quadquad quad quad quad n=__quad y=__\

z=(y=a/n)*2;quad quad Now z=__

{/eq}

EXPERT ANSWER

#### Part 1:

For variable x1,

At first, the memory of the variable xl does not contain the esteem

For variable x.

At first, the ideal memory