Question 56
Consider an integer array declared as 'int A[10] = {112, 168, 56, 61};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 56. A[1] equals 168. Therefore, 56 + 168 = 224.
Consider an integer array declared as 'int A[10] = {112, 168, 56, 61};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 56. A[1] equals 168. Therefore, 56 + 168 = 224.
Consider an integer array declared as 'int A[10] = {114, 171, 57, 62};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 57. A[1] equals 171. Therefore, 57 + 171 = 228.
Consider an integer array declared as 'int A[10] = {116, 174, 58, 63};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 58. A[1] equals 174. Therefore, 58 + 174 = 232.
Consider an integer array declared as 'int A[10] = {118, 177, 59, 64};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 59. A[1] equals 177. Therefore, 59 + 177 = 236.
Consider an integer array declared as 'int A[10] = {120, 180, 60, 65};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 60. A[1] equals 180. Therefore, 60 + 180 = 240.