Question 26
Consider an integer array declared as 'int A[10] = {52, 78, 26, 31};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 26. A[1] equals 78. Therefore, 26 + 78 = 104.
Free Practice / PYQ
Consider an integer array declared as 'int A[10] = {52, 78, 26, 31};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 26. A[1] equals 78. Therefore, 26 + 78 = 104.
Consider an integer array declared as 'int A[10] = {54, 81, 27, 32};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 27. A[1] equals 81. Therefore, 27 + 81 = 108.
Consider an integer array declared as 'int A[10] = {56, 84, 28, 33};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 28. A[1] equals 84. Therefore, 28 + 84 = 112.
Consider an integer array declared as 'int A[10] = {58, 87, 29, 34};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 29. A[1] equals 87. Therefore, 29 + 87 = 116.
Consider an integer array declared as 'int A[10] = {60, 90, 30, 35};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 30. A[1] equals 90. Therefore, 30 + 90 = 120.