int Count_and_Compare(const char** strings, int size) pelbagai Write a C function "Count_and_Compare" that takes an arra
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
int Count_and_Compare(const char** strings, int size) pelbagai Write a C function "Count_and_Compare" that takes an arra
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!