Write a function named charCount() that accepts two character arrays of the same
ID: 3641705 • Letter: W
Question
Write a function named charCount() that accepts two character arrays of the same length asparameters, and returns how many of the letters in the corresponding positions of the two arrays were
the same, how many vowels did the first array contain and how many vowels did the second array
contain.
For example the function charCount() could be called as follows:
charCount(array1, array2, arrayLength, numCommon, numVowels1,
numVowlers2);
Include the function written in working program. The main() function should initialize the two
arrays, call charCount() and print out the results.