Question 41
Consider an integer array declared as 'int A[10] = {82, 123, 41, 46};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 41. A[1] equals 123. Therefore, 41 + 123 = 164.
Free Practice / PYQ
Consider an integer array declared as 'int A[10] = {82, 123, 41, 46};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 41. A[1] equals 123. Therefore, 41 + 123 = 164.
Consider an integer array declared as 'int A[10] = {84, 126, 42, 47};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 42. A[1] equals 126. Therefore, 42 + 126 = 168.
Consider an integer array declared as 'int A[10] = {86, 129, 43, 48};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 43. A[1] equals 129. Therefore, 43 + 129 = 172.
Consider an integer array declared as 'int A[10] = {88, 132, 44, 49};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 44. A[1] equals 132. Therefore, 44 + 132 = 176.
Consider an integer array declared as 'int A[10] = {90, 135, 45, 50};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 45. A[1] equals 135. Therefore, 45 + 135 = 180.