Advertisements
Advertisements
प्रश्न
Which of the following function finds the size of array char m[] = {'R','A','J','E','N','D','R','A'};?
विकल्प
m.size of (a)
m.elements of (m)
m.length
None
MCQ
उत्तर
m.length
Explanation:
In Java, you may discover the size or length of an array by calling arrayName.length. So, in this case, m.length returns the size of the array m[], which has eight members.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?