codeGK
Code it ALL
IndexOf() in C# - CodeGK

♦ IndexOf() in C#

♣ Example7: IndexOf() in C#

IndexOf() is a string method that finds the index of given character.
In this example, IndexOf() is illustrated.
Example
Input:
Output:
Strings