हिंदी

Write a statement to show how finding the length of a character array chr[ ] differs from finding the length of String object str. - Computer Applications

Advertisements
Advertisements

प्रश्न

Write a statement to show how finding the length of a character array chr[ ] differs from finding the length of String object str. 

लघु उत्तरीय

उत्तर

Statement to find the length of a character array chr[] is:
int 1 = chr.length;

Statement to find length of a String object str is:
int 1 = str.length();

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: String Handling - Review Insight [पृष्ठ २८४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 4 String Handling
Review Insight | Q 4. | पृष्ठ २८४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×