Advertisements
Advertisements
Question
A Single Dimensional array contains N elements. What will be the last subscript?
Options
N−1
N
N+1
None
MCQ
Solution
N−1
Explanation:
The array subscripts range from 0 to (n-1), where n represents the number of elements in the array.
shaalaa.com
Is there an error in this question or solution?