text: Function to find index of value in arr [ start ... end ] The function assumes that value is present in in [ ]
code: int search ( char arr [ ] , int strt , int end , char value ) { int i ; for ( i = strt ; i <= end ; i ++ ) { if ( arr [ i ] == value ) return i ; } }