Question 61
Consider an integer array declared as 'int A[10] = {122, 183, 61, 66};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 61. A[1] equals 183. Therefore, 61 + 183 = 244.
Consider an integer array declared as 'int A[10] = {122, 183, 61, 66};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 61. A[1] equals 183. Therefore, 61 + 183 = 244.
Consider an integer array declared as 'int A[10] = {124, 186, 62, 67};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 62. A[1] equals 186. Therefore, 62 + 186 = 248.
Consider an integer array declared as 'int A[10] = {126, 189, 63, 68};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 63. A[1] equals 189. Therefore, 63 + 189 = 252.
Consider an integer array declared as 'int A[10] = {128, 192, 64, 69};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 64. A[1] equals 192. Therefore, 64 + 192 = 256.
Consider an integer array declared as 'int A[10] = {130, 195, 65, 70};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 65. A[1] equals 195. Therefore, 65 + 195 = 260.