Question: use C - string , ( c + + ) Variables studentName and searchChar are assigned with a string and character read from input. For

use C-string ,(c++)
Variables studentName and searchChar are assigned with a string and character read from input. For each character in studentName, assign the character with '!' if the character is not equal to searchChar.
Ex: If the input is:
Amaia
a
then the output is:
!!a!a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!