Chapter - 9: Arrays

Match the following with reference to the following segment:


int x[3][5] = {
 { 1, 2, 3, 4, 5 },
 { 6, 7, 8, 9, 10 },
 { 11, 12, 13, 14, 15 }
 }, *n = x[0];
1. *( *( x + 2 ) + 1) 	  a. 9
2. *( *x + 2 ) + 5        b. 13
3. *( *( x + 1) )         c. 4
4. *( *( x ) + 2 ) + 1 	  d. 3
5. * ( *( x + 1 ) + 3 )   e. 2
6. *n                     f. 12
7. *( n +2 )              g. 14
8. (*(n + 3 ) + 1         h. 7
9. *(n + 5)+1             i. 1
10. ++*n 	          j. 8
                          k. 5
                          l. 10	
                          m. 6

Ans:

1. = f. 12
2. = j. 8
3. = m. 6
4. = c. 4
5. = a. 9
6. = i. 1
7. = d. 3
8. = k. 5
9. = h. 7
10.= e. 2

© 2020 Garbage Valuegarbage value logo