हिंदी

The output of the statement "talent". compareTo("genius") is ______.

Advertisements
Advertisements

प्रश्न

The output of the statement "talent". compareTo("genius") is ______.

विकल्प

  • 11

  • -11

  • 0

  • 13

MCQ
रिक्त स्थान भरें
Advertisements

उत्तर

The output of the statement "talent". compareTo("genius") is 13.

Explanation:

ASCII value of 't' - ASCII value of 'g' = 116 − 103 = 13.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×