मराठी

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×