Question: Do not call any library functions and use C language Write a function that searches for the first occurrence of the character sc in a
Do not call any library functions and use C language

Write a function that searches for the first occurrence of the character sc in a string. If the character contained in sc is found, the index of the character in str is returned. If the character is not found, -1 is returned. For example, search("abcded", 'd') returns 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
