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
Advertisements

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×