Question: Character array colorName and character searchChar are assigned with a name and a character read from input. Output Added to list 1 if searchChar
Character array colorName and character searchChar are assigned with a name and a character read from input. Output "Added to list if searchChar does not exist in colorName, and "Added to list otherwise. End with a newline.
Click here for examples
Ex : If the input is:
thistle
J
then the output is:
Added to list
Ex : If the input is:
mustard
r
then the output is:
Added to list
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
