Question 46
Consider an integer array declared as 'int A[10] = {92, 138, 46, 51};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 46. A[1] equals 138. Therefore, 46 + 138 = 184.
Free Practice / PYQ
Consider an integer array declared as 'int A[10] = {92, 138, 46, 51};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 46. A[1] equals 138. Therefore, 46 + 138 = 184.
Consider an integer array declared as 'int A[10] = {94, 141, 47, 52};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 47. A[1] equals 141. Therefore, 47 + 141 = 188.
Consider an integer array declared as 'int A[10] = {96, 144, 48, 53};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 48. A[1] equals 144. Therefore, 48 + 144 = 192.
Consider an integer array declared as 'int A[10] = {98, 147, 49, 54};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 49. A[1] equals 147. Therefore, 49 + 147 = 196.
Consider an integer array declared as 'int A[10] = {100, 150, 50, 55};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 50. A[1] equals 150. Therefore, 50 + 150 = 200.