#include stdio.h
#include string.h
int main()
{
char str[150];
int i, j;
printf("Remove char in String Except Alphabets :\n");
printf("Input the string : ");
gets(str);
for (i = 0; str[i] != '\0'; ++i)
{
while (!((str[i] gt-sym= 'a' && str[i] less-sym= 'z')
|| (str[i] gt-sym= 'A' && str[i] less-sym= 'Z'
|| str[i] == '\0')))
{
for (j = i; str[j] != '\0'; ++j)
{
str[j] = str[j + 1];
}
str[j] = '\0';
}
printf("After removing String : %s\n\n", str);
}
🔴 Class 67 : Program to remove dot(.) from the given string
🔴 Daily Reel Upload
🔴 Follow to Learn C - Your first step to Programming
Connect with us on Instagram for daily short videos where we help students like you with my programming knowledge so that they can finally grow and scale future in Software, Website & Mobile application development.
#clanguage #clanguageprogramming #cprogramming #cprogramminglanguage