Question 11
Consider an integer array declared as 'int A[10] = {22, 33, 11, 16};'. What is the value of '*(A + 2) + A[1]'?
Detailed Solution
*(A + 2) accesses element A[2] which equals 11. A[1] equals 33. Therefore, 11 + 33 = 44.
Free Practice / PYQ
Consider an integer array declared as 'int A[10] = {22, 33, 11, 16};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 11. A[1] equals 33. Therefore, 11 + 33 = 44.
Consider an integer array declared as 'int A[10] = {24, 36, 12, 17};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 12. A[1] equals 36. Therefore, 12 + 36 = 48.
Consider an integer array declared as 'int A[10] = {26, 39, 13, 18};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 13. A[1] equals 39. Therefore, 13 + 39 = 52.
Consider an integer array declared as 'int A[10] = {28, 42, 14, 19};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 14. A[1] equals 42. Therefore, 14 + 42 = 56.
Consider an integer array declared as 'int A[10] = {30, 45, 15, 20};'. What is the value of '*(A + 2) + A[1]'?
*(A + 2) accesses element A[2] which equals 15. A[1] equals 45. Therefore, 15 + 45 = 60.