A program contains the following declarations andstatements. charu; char v =\'A\
ID: 3618173 • Letter: A
Question
A program contains the following declarations andstatements.
charu;
char v ='A';
char*pu;
char* pv= &v;
*pv = v+ 1;
u = *pv+ 1;
pu =&u;
If the address of u is 5000 and the address ofv is 5001, then:
(a) [2] What value is stored at&v? ______________
(b) [2] What value is assigned topv? ______________
(c) [2] What value is represented by*pv? ______________
(d) [2] What value is assigned tou? ______________
(e) [2] What value is stored at&u? ______________
(f) [2] What value is assigned topu? ______________
(g) [2] What value is represented by*pu? ______________
Explanation / Answer
char u;
char v = 'A';
char* pu;
char* pv = &v;
of u is 5000 and the address of v is 5001, then:
(a) [2] What value is stored at &v? 5001
(b) [2] What value is assigned to pv? 5001
(c) [2] What value is represented by *pv? 'A'
(d) [2] What value is assigned to u? (
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.