C program to print indexes of a particular character in a string
In this program we will read a string and print indexes of a particular character in C language, for example, if input string is "Hi there, how are you?" and we want to print the indexes of character ‘o’ then program will return 11 and 19, because ‘o’ exists on both indexes.
Program to get the indexes of a particular characters in C
Output
need an explanation for this answer? contact us directly to get an explanation for this answer