Page 1 of 1

int Count_and_Compare(const char** strings, int size) pelbagai Write a C function "Count_and_Compare" that takes an arra

Posted: Mon May 02, 2022 12:19 pm
by answerhappygod
Int Count And Compare Const Char Strings Int Size Pelbagai Write A C Function Count And Compare That Takes An Arra 1
Int Count And Compare Const Char Strings Int Size Pelbagai Write A C Function Count And Compare That Takes An Arra 1 (101.22 KiB) Viewed 33 times
int Count_and_Compare(const char** strings, int size) pelbagai Write a C function "Count_and_Compare" that takes an array of C strings (where each string in the array is represented as a pointer to character) and the size of the array as input arguments. The function should count the number of vowels(a,e,i,o,u) and consonants stored in the array and return an integer based on the following conditions: • If number of vowels in array > number of consonants in array, return 1 • If number of vowels in array < number of consonants in array, return -1 • If number of vowels in array == number of consonants in array, return 0