हिंदी

Which of the following function finds the size of array char m[] = {'R','A','J','E','N','D','R','A'};? - Computer Applications

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [पृष्ठ २३८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 3 Arrays (Single Dimensional and Double Dimensional)
EXERCISES | Q I. 9. | पृष्ठ २३८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×