मराठी

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×