Question 36
Consider an integer array declared as 'int A[10] = {72, 108, 36, 41};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 36. A[1] equals 108. Therefore, 36 + 108 = 144.
Free Practice / PYQ
Consider an integer array declared as 'int A[10] = {72, 108, 36, 41};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 36. A[1] equals 108. Therefore, 36 + 108 = 144.
Consider an integer array declared as 'int A[10] = {74, 111, 37, 42};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 37. A[1] equals 111. Therefore, 37 + 111 = 148.
Consider an integer array declared as 'int A[10] = {76, 114, 38, 43};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 38. A[1] equals 114. Therefore, 38 + 114 = 152.
Consider an integer array declared as 'int A[10] = {78, 117, 39, 44};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 39. A[1] equals 117. Therefore, 39 + 117 = 156.
Consider an integer array declared as 'int A[10] = {80, 120, 40, 45};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 40. A[1] equals 120. Therefore, 40 + 120 = 160.