Question 51
Consider an integer array declared as 'int A[10] = {102, 153, 51, 56};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 51. A[1] equals 153. Therefore, 51 + 153 = 204.
Consider an integer array declared as 'int A[10] = {102, 153, 51, 56};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 51. A[1] equals 153. Therefore, 51 + 153 = 204.
Consider an integer array declared as 'int A[10] = {104, 156, 52, 57};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 52. A[1] equals 156. Therefore, 52 + 156 = 208.
Consider an integer array declared as 'int A[10] = {106, 159, 53, 58};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 53. A[1] equals 159. Therefore, 53 + 159 = 212.
Consider an integer array declared as 'int A[10] = {108, 162, 54, 59};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 54. A[1] equals 162. Therefore, 54 + 162 = 216.
Consider an integer array declared as 'int A[10] = {110, 165, 55, 60};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 55. A[1] equals 165. Therefore, 55 + 165 = 220.