Can anyone solve this with steps please ? Given the following program: #include
ID: 3690868 • Letter: C
Question
Can anyone solve this with steps please ?
Given the following program: #include int main() { int a = 4theta; int b = 11; int *c = &b; int d; printf("&a;=%d &b;=%d ", (int)&a;, (int)&b;); printf("c=%d &c;=%d *c=%d ", (int)c, (int)&c;, *c); d = *(--c); printf("c=%d &c;=%d *c=%d ", (int)c, (int)&c;, *c); *c = (*c) + 1; printf("c=%d &c;=%d *c=%d ", (int)c, (int)&c;, *c); printf("a=%d b=%d c=%d d=%d ", a, b, (int)c, d); return 0; } The variables a, b, c,d are stored at the memory location mentioned in the following table:Explanation / Answer
&a=886190680 &b=886190676
c=886190676 &c=886190664 *c=11
c=886190672 &c=886190664 *c=886190912
a=40 b=11 c=886190672 d=886190912