♦ Substring in C#
♣ Example8: Substring in C#
Substring() is a string method that accepts an integer as a parameter.After accepting Integer as parameter a substring is returned.
Substring will have characters from the parameter-index up till the end.
In this example, Substring() is illustrated.
Example
Input:
Output: