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=46n=44
&m=0012FE9C
*p=46
r=46
*q=46
Hope this will helpyou...
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.