int Occurrence (string str, char c) { int i, count ; count = 0 ; for (i = 0 ; str[i] != '\0' ; i++) { if (str[i] == c) count++ ; } return(count) ; }