Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Determine the value of each of the indicated variables afterthe following code e

ID: 3613225 • Letter: D

Question

Determine the value of each of the indicated variables afterthe following code executes. Assume that each integer occupies 4bytes and that m is stores in memory staring at byte 0x3fffd00.

int m=44;

int *p=&m;

int &r = m;

int n= (*p)++;

int *q = p;

r = --(*p) + 1;

++*q;


a. m

b. n

c. &m

d. *p

e. r

f. *q

Determine the value of each of the indicated variables afterthe following code executes. Assume that each integer occupies 4bytes and that m is stores in memory staring at byte 0x3fffd00.

int m=44;

int *p=&m;

int &r = m;

int n= (*p)++;

int *q = p;

r = --(*p) + 1;

++*q;


a. m

b. n

c. &m

d. *p

e. r

f. *q

Explanation / Answer

Dear.... The values after execution of all statements... m=46
n=44
&m=0012FE9C
*p=46
r=46
*q=46
Hope this will helpyou...
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote