logo CodeStepByStep logo

is_vowel

Language/Type: C string
Related Links:

Write a function named is_vowel that returns whether a string is a vowel (a single-letter string containing a, e, i, o, or u, case-insensitively). Return the value 1 to indicate "true" and 0 to indicate "false". For example, is_vowel("a") and is_vowel("E") both return 1 while is_vowel("x") and is_vowel("Eagle") both return 0.

Function: Write a C function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.