C Program if else : "Check Given character is Alphanumeric or not" with output

 #include <stdio.h>

#include <ctype.h> int main() { char ch; printf("Enter a character: "); scanf("%c", &ch); if (isalnum(ch)) { printf("%c is an alphanumeric character.\n", ch); } else { printf("%c is not an alphanumeric character.\n", ch); } return 0; }








Enter a character: A A is an alphanumeric character. Enter a character: 7 7 is an alphanumeric character. Enter a character: # # is not an alphanumeric character.

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management