Skip to main content

Practice ยท 1 of 3

strlib: Vowel Report

Implement public int count_vowels(const char *s) (aeiou, case-insensitive) and public double vowel_ratio(const char *s) (vowels / length; empty string -> 0.0), backed by a static helper static int is_vowel_ci(char c).

Difficulty: beginner

Back to lesson: Practice: Library Building