Please help with this string argument. Thanks somuch. Will rate as lifesaver. Wr
ID: 3615626 • Letter: P
Question
Please help with this string argument. Thanks somuch. Will rate as lifesaver. Write a program and the function hydroxide that returns 1for true if its string argument ends in the substring OH.Use the string function strcmp to check for "OH".Hint: create a substring for your comparison from the originalstring input by the user.
Use the following data to test you program:
KOH H202 NaCl NaOH
Please help with this string argument. Thanks somuch. Will rate as lifesaver. Write a program and the function hydroxide that returns 1for true if its string argument ends in the substring OH.Use the string function strcmp to check for "OH".
Hint: create a substring for your comparison from the originalstring input by the user.
Use the following data to test you program:
KOH H202 NaCl NaOH