Question: C language Implement the following specification: /* Removes all vowels from string in and writes the result to out . Returns 0 if successful and

C language

Implement the following specification:

/* Removes all vowels from string in and writes the result to out . Returns 0 if successful and -1 if either in or out is NULL .*/

int xvowelize ( char * in , char * out );

For example, consider this unit test:

#include < assert .h >

#include < stdio .h >

// Write xvowelize here .

int main () {

char str [] = " Hello universe !" ;

char out [32];

int err = xvowelize ( str , out );

assert (! err );

printf ( "%s\ n%s " , str , out );

return 0;

}

Executing it should yield the following on the terminal: Hello universe! Hll nvrs!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!