# Match the following with reference to the following program segment:

L
Sections
5
Exercises

A

B

C

D

E

F

G

H

I

J

K

L

1

2

3

4

5

6

7

8

9

10

11

13

14

15

16

17

18

19

``````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. F9E3. pj         =  b. F9E4. *pj        =  c. 355. i          =  g. unspecified (60)6. pi         =  e. F9C7. *pi        =  g. unspecified (25)8. (pi+2)     =  i. F9E9. (*pi+2)    =  g. unspecified (27)10.*(pi+2)    = c. 35 `

© 2020 Garbage Value