In c programming, Write a function findLetter based on the following rules: It takes a string named str and a character named ch as parameter, returns the index of the first occurrence of the...


In c programming, Write a function findLetter based on the following rules:<br>It takes a string named str and a character named ch as parameter, returns the index of the first<br>occurrence of the character ch if the str string contains the character ch; If the relevant character is<br>not found in the string, write a function that returns -1. Call the function inside the main function and<br>test it. You should use the prototype given below:<br>int findLetter (char str [], char ch)<br>

Extracted text: In c programming, Write a function findLetter based on the following rules: It takes a string named str and a character named ch as parameter, returns the index of the first occurrence of the character ch if the str string contains the character ch; If the relevant character is not found in the string, write a function that returns -1. Call the function inside the main function and test it. You should use the prototype given below: int findLetter (char str [], char ch)

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here