A single-dimensional array has 50 elements.
In Java, array indexing starts from 0.
First element → x[0]
Second element → x[1]
…
Last (50th) element → x[49] ✅
Remember: last index = total elements − 1
(a) x[51] = 100 → ❌ Out of bounds
(b) x[48] = 100 → ❌ 49th element, not last
(c) x[49] = 100 → ✅ Correct, last element
(d) x[50] = 100 → ❌ Out of bounds
✅ Answer: (c) x[49] = 100