Question 66
Consider an integer array declared as 'int A[10] = {132, 198, 66, 71};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 66. A[1] equals 198. Therefore, 66 + 198 = 264.
Consider an integer array declared as 'int A[10] = {132, 198, 66, 71};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 66. A[1] equals 198. Therefore, 66 + 198 = 264.
Consider an integer array declared as 'int A[10] = {134, 201, 67, 72};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 67. A[1] equals 201. Therefore, 67 + 201 = 268.
Consider an integer array declared as 'int A[10] = {136, 204, 68, 73};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 68. A[1] equals 204. Therefore, 68 + 204 = 272.
Consider an integer array declared as 'int A[10] = {138, 207, 69, 74};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 69. A[1] equals 207. Therefore, 69 + 207 = 276.
Consider an integer array declared as 'int A[10] = {140, 210, 70, 75};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 70. A[1] equals 210. Therefore, 70 + 210 = 280.