मराठी

Give the Output of the Following String Functions: (I) "Mississippi".Indexof('S') + "Mississippi".Lastindexof('I') (Ii) "Cable".Compareto("Cadet")

Advertisements

प्रश्न

Give the output of the following string functions:

  1. "MISSISSIPPI".indexOf('S') + "MISSISSIPPI".lastIndexOf('I')
  2. "CABLE".compareTo("CADET") 
लघु उत्तर
टीपा लिहा
Advertisements

उत्तर

  1. 2 + 10 = 12
  2. −2 
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: String Handling - Review Insight [पृष्ठ २८५]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×