How to find last occurrence of character in string Excelchat Excelchat
How to find last occurrence of character in string Excelchat Excelchat . You can try with the below code and it works to find the last occurrence of the character ' (' and prints the last occurrence number and the remaining string, data: Let’s say the following is our string. C Program to Count All Occurrence of a Character in a String from www.tutorialgateway.org The ending null character is considered part of the string. By using rindex() method : The strrchr() function finds the last occurrence of c (converted to a character) in string.