Texts: Instructions:
Write a C program to create an array of characters of size 6. Populate the array with letters using a function named populateArray. Display the contents of the array using another function named displayArray. Print only the vowels in the array using a function named printVowels.
Hint:
Use scanf to read user input for each array element. To identify vowels, use an if statement to check against 'A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u'.
Hint 2:
Alternatively, look up the ctype.h functions. There are many useful functions that may appear in Lab Exams. For example, the islower() function checks whether a character is lowercase and can be used in an if statement. Remember to #include <ctype.h>.