Question 31
Consider an integer array declared as 'int A[10] = {62, 93, 31, 36};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 31. A[1] equals 93. Therefore, 31 + 93 = 124.
Free Practice / PYQ
Consider an integer array declared as 'int A[10] = {62, 93, 31, 36};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 31. A[1] equals 93. Therefore, 31 + 93 = 124.
Consider an integer array declared as 'int A[10] = {64, 96, 32, 37};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 32. A[1] equals 96. Therefore, 32 + 96 = 128.
Consider an integer array declared as 'int A[10] = {66, 99, 33, 38};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 33. A[1] equals 99. Therefore, 33 + 99 = 132.
Consider an integer array declared as 'int A[10] = {68, 102, 34, 39};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 34. A[1] equals 102. Therefore, 34 + 102 = 136.
Consider an integer array declared as 'int A[10] = {70, 105, 35, 40};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 35. A[1] equals 105. Therefore, 35 + 105 = 140.