Computer Science, asked by nunnavandana3, 9 months ago

Write a Program to take String and Print the String by removing all vowels in it.

Answers

Answered by Nivedita4209
12

Answer:

C program to delete vowels from a string

int check_vowel(char);

int main() { ...

printf("Enter a string to delete vowels\n"); gets(s);

for(c = 0; s[c] != '\0'; c++) { if(check_vowel(s[c]) == 0) { // If not a vowel. ...

t[d] = '\0';

strcpy(s, t); // We are changing initial string. This is optional.

printf("String after deleting vowels: %s\n", s);

return 0; }

Similar questions