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]