fork download
  1. #include<stdio.h>
  2. #include<ctype.h>
  3. int main()
  4. {
  5. char c;
  6. printf("enter a character\n");
  7. scanf("%c",&c);
  8. int i;
  9. i=isalpha(c);
  10. if(i==1)
  11. printf("entered character is an alphabet\n");
  12. else
  13. printf("entered character is not an alphabet %d\n", i);
  14. return 0;
  15. }
Success #stdin #stdout 0s 2296KB
stdin
c
stdout
enter a character
entered character is not an alphabet 1024