#include "occurrences.h" #include #include #include void occurrences(char * phrase) { int characters = 0; int digits = 0; int vowels = 0; char c; while ((c = *phrase++) != '\0') { characters++; if (isdigit(c)) { digits++; } else if (strchr("aeiouAEIOU", c) != NULL) { vowels++; } } printf("The number of characters is %d, the number of digits is %d, and the number of vowels is %d\n", characters, digits, vowels); }