हिंदी

Write a statement to perform the following task on a string: Find and display the position of the last space in a string s. - Computer Applications

Advertisements
Advertisements

प्रश्न

Write a statement to perform the following task on a string:

Find and display the position of the last space in a string s.

कोड लेखन

उत्तर

int p = s.lastIndexOf('__');
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: String Handling - EXERCISES [पृष्ठ २८९]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 4 String Handling
EXERCISES | Q VII. 4. (i) | पृष्ठ २८९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×