English

State the purpose and return data type of the following String function: indexOf() - Computer Applications

Advertisements
Advertisements

Question

State the purpose and return data type of the following String function:

indexOf() 

Answer in Brief

Solution

This function returns the index of a character in a provided string. Its type is integer (int). 

shaalaa.com
  Is there an error in this question or solution?
Chapter 4: String Handling - EXERCISES [Page 289]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 4 String Handling
EXERCISES | Q VII. 2. (a) | Page 289
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×
Our website is made possible by ad-free subscriptions or displaying online advertisements to our visitors.
If you don't like ads you can support us by buying an ad-free subscription or please consider supporting us by disabling your ad blocker. Thank you.