Question 16
Consider an integer array declared as 'int A[10] = {32, 48, 16, 21};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 16. A[1] equals 48. Therefore, 16 + 48 = 64.
Free Practice / PYQ
Consider an integer array declared as 'int A[10] = {32, 48, 16, 21};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 16. A[1] equals 48. Therefore, 16 + 48 = 64.
Consider an integer array declared as 'int A[10] = {34, 51, 17, 22};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 17. A[1] equals 51. Therefore, 17 + 51 = 68.
Consider an integer array declared as 'int A[10] = {36, 54, 18, 23};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 18. A[1] equals 54. Therefore, 18 + 54 = 72.
Consider an integer array declared as 'int A[10] = {38, 57, 19, 24};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 19. A[1] equals 57. Therefore, 19 + 57 = 76.
Consider an integer array declared as 'int A[10] = {40, 60, 20, 25};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 20. A[1] equals 60. Therefore, 20 + 60 = 80.