7.4 Character Test
7.4 Character Test
[9] is_upper - Check whether a Character is an Uppercase Letter or not.
[10] is_lower - Check whether a Character is a Lowercase Letter or not.
[11] is_alpha - Check whether a Character is an Alphabet or not.
[12] is_digit - Check whether a Character is a Digit or not.
[13] is_alphanum - Check whether a Character is an Alphanumeric Character or not.
[14] is_vowel - Check whether a Character is a Vowel or not.
1. Use if-else.
2. Use switch case.
[15] is_consonant - Check whether a Character is a Consonant or not.
[16] is_xdigit Check if the character is a hexadecimal digit.
[17] is_punct Check if the character is a punctuation character.
[18] is_equal - Test equality of two Characters.
সমাধান
[9] is_upper - Check whether a Character is an Uppercase Letter or not.
[10] is_lower - Check whether a Character is a Lowercase Letter or not.
[11] is_alpha - Check whether a Character is an Alphabet or not.
[12] is_digit - Check whether a Character is a Digit or not.
[13] is_alphanum - Check whether a Character is an Alphanumeric Character or not.
[14] is_vowel - Check whether a Character is a Vowel or not.
[15] is_consonant - Check whether a Character is a Consonant or not.
[16] is_xdigit Check if the character is a hexadecimal digit. (function)
[17] is_punct Check if the character is a punctuation character. (function)
[18] is_equal - Test equality of two Characters.
Last updated