मराठी

Give the output of the following String class method: "devote". compareTo("DEVOTE")

Advertisements

प्रश्न

Give the output of the following String class method:

"devote". compareTo("DEVOTE")
थोडक्यात उत्तर
Advertisements

उत्तर

32

Explanation:

The compareTo() function compares two strings and returns the difference in their ASCII codes.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 10: String Handling - Exercises [पृष्ठ २४९]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 10 String Handling
Exercises | Q 6. (b) | पृष्ठ २४९
Advertisements
Share
Notifications



      Forgot password?
Use app×