C program to Delete all occurrences of Character from the String.


Program : Delete all occurrences of Character from the String

Output :

Explanation :

  1. In this tutorial we have accepted one string from the user and character to be deleted from the user.
  2. Now we have passed these two parameters to function which will delete all occurrences of given character from the string.
  3. Whole String will be displayed as output except given Character  .

Program Code Explanation :

  • If character is other than given character then store it into another array.