Question: f . Write a C program that removes characters in a string except alphabets ( Assume English alphabet is used: a - z and A
f Write a program that removes characters in a string except alphabets Assume
English alphabet is used: and AZ You cannot use string.h library for this exercise.
A sample run would be as follows:
Please enter your string: helloworld
Helloworld
Your program needs to have the following functions:
isalphabet : This function will take a character and returns true if it is an
English alphabet character or AZ and returns false if it is not. You need to
decide about the input. Add comment for his function and explain the input
and output.
cleanstring: This function will remove the characters that are not
alphabet characters in a given string. You need to decide about the input
and return here. Add comment for his function and explain the input and
output.
You need to ask user to enter a string in the main and then make use of
cleanstring function which makes use of isalphabet to clean the string.
You will then display the cleaned string in the main.
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
