Computer Science, asked by vvramarao60gmailcom, 8 months ago

computer programming c language​

Attachments:

Answers

Answered by Anonymous
1

Answer:

C programming code

#include <stdio.h>

#include <string.h>

int check_vowel(char);

int main()

{

char s[100], t[100];

int c, d = 0;

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] = s[c];

d++;

}

}

t[d] = '\0';

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

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

return 0;

}

int check_vowel(char ch)

{

if (ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'i' || ch == 'I' || ch =='o' || ch=='O' || ch == 'u' || ch == 'U')

return 1;

else

return 0;

}

HOPE THIS HELPS.... PLEASE MARK IT AS BRAINLIEST ANSWER AND FOLLOW ME IF IT HELPS...

Answered by swati2010
0

Answer:

C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, with a static type system. By design, C provides constructs that map efficiently to typical machine instructions. 

Explanation:

MARK as brainliest

Similar questions