0
Write a c program to check a character is alphabet or not
3 Answers
+ 5
Alvaro Morte ,
besides the suggestion given by Lisa we can also use:
> the c library function *isalpha(...)*.
> to check for letters and digits we can use *isalnum(...)*
+ 3
You can approach the task like this:
* get input
* use the ascii value of the character and an if-statement to check if the input is within the range of ascii characters
example:
https://www.programiz.com/c-programming/examples/alphabet
+ 3
Alvaro Morte ,
do you need to input and check just a single character, or do you need to check all characters of a string?