| 1. |
Write a short note on character functions. |
|
Answer» 1. isalpha(): Returns a non-zero value if the argument is a A-Z or a-z letters. For example, isalpha(‘a’) output: 1 means true isalpha(‘5’) output: 0 means false 2. islower(): Returns a non-zero value if argument is a small case alphabet. For example, islower(‘a’) output: 1 islower(‘A’) output: 0 3. isupper(): it is a character function that returns a non-zero value if argument is an upper case alphabet. For example, isupper(‘a’) output: 0 isupper(‘A’) output: 1 4. tolower( ): It converts the capital alphabet character to lower case. For example, tolower(‘A’) output: a 5. toupper( ): It converts the lower case alphabet character to upper case. For example, toupper(‘a’) output: A |
|