C programming: write a code

profilezhifeng1997

 Write a function to take a string of no more than 50 characters and a character and returns the count of a letter the user inputs. If the letter is not found, the function returns -1.
Use the function in main to get two inputs from the user, a sentence and a character, then show the count of that character. 

    • 8 years ago
    • 7
    Answer(2)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      CountChars.zip
    • attachment
      Screenshot527.png

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      characterFrequency.c