Can someone help me with this C programming question Thanks

Can someone help me with this C programming question?? Thanks

Review code pointer.c and write your answer to the following questions in file 3_1.c: int a=5, b, *p=&a; Assuming that the lvalue of a, b, and p are: fb7c, fb78, fb74, write down the rvalue and lvalue of a, b, and p after each statement (answer to the first is shown as an example): P = &a;//a: (5, fb7c); b: (unknown, fb78); p: (fb7c, fb74) b = a * *p; *p = b + a; b = (*p) ++; a = *p++; p = &b; a = *p; b = a++; p = p + 32;

Solution

Answer:

Continuing from second line :

b(25, fb78)

a(30, fb7c)

b(31, fb78)

a(30, fb7c)

p(fb7d, fb74)

p(fb78, fb74)

a(31, fb7c)

b(31, fb78)

a(32, fb7c)

p(fb98, fb74)

Can someone help me with this C programming question?? Thanks Review code pointer.c and write your answer to the following questions in file 3_1.c: int a=5, b,

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site