int i = 25, j, = 25;
int *pi = &i, *pj = &j;
…….
……. /* more lines of program */
…….
*pj = j + 5;
j = *pj + 5 ;
pj = pj ;
*pi = i + j ;
Each integer quantity occupies 2 bytes of memory. The value assigned to I begin at (hexadecimal) address F9C and the value assigned to j begins at address F9E. Match the value represented by left-hand side quantities with the right.
1. &i a. 30
2. &j b. F9E
3. pj c. 35
4. *pj d. FA2
5. i e. F9C
6. pi f. 67
7. *pi g. unspecified
8. ( pi + 2 ) h. 65
9. (*pi + 2) i. F9E
10. *(pi + 2) j. F9E
k. FAO
l. F9D
Ans:
1. &u = e. F9C|
2. &j = b. F9E
3. pj = b. F9E
4. *pj = c. 35
5. i = g. unspecified (60)
6. pi = e. F9C
7. *pi = g. unspecified (25)
8. (pi+2) = i. F9E
9. (*pi+2) = g. unspecified (27)
10.*(pi+2) = c. 35