Computer Applications
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
Java Arrays
56 Likes
Answer
m.length
Reason — m.length will find the size of array m[].
Answered By
24 Likes
Related Questions
The following statement :
int code[ ]= {25,37,38,42};- assigns 37 to code[1]
- assigns 25 to code[1]
- assigns 38 to code[3]
- assigns 42 to code[0]
The elements of array[50] are numbered:
- from 1 to 50
- from 0 to 49
- from 1 to 51
- none
A Single Dimensional array contains N elements. What will be the last subscript?
- N-1
- N
- N+1
- None
Fill in the blanks:
Each element of a single dimensional array is accessed using variable along with _________ enclosed within square bracket.