Computer Applications
A Single Dimensional array contains N elements. What will be the last subscript?
- N-1
- N
- N+1
- None
Java Arrays
75 Likes
Answer
N-1
Reason — The array subscripts range from 0 to (n-1), where n is the number of elements in the array.
Answered By
30 Likes
Related Questions
The elements of array[50] are numbered:
- from 1 to 50
- from 0 to 49
- from 1 to 51
- none
Which of the following function finds the size of array
char m[] = {'R', 'A', 'J', 'E', 'N', 'D', 'R', 'A' };?- m.sizeof (a)
- m.elementsof (m)
- m.length
- None
Fill in the blanks:
Each element of a single dimensional array is accessed using variable along with _________ enclosed within square bracket.
Fill in the blanks:
A double dimensional array uses _________ types of indices.