#include <stdio.h> enum {FALSE, TRUE}; void PrintFirstVowel(char *); int IsVowel(char ch); int main(int argc, char *argv[]) { while (--argc > 0) { ++argv; PrintFirstVowel(*argv); } printf("\n"); return 0; } void PrintFirstVowel(char *str) { char *cp; for (cp = str; *cp != '\0'; cp++) if (IsVowel(*cp)) { printf("%c ", *cp); break; } } int IsVowel(char ch) { if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') return TRUE; else return FALSE; }