How to Check Allphabets using ASCII code in Turbo C

  • How to Check Allphabets using ASCII code in Turbo C

  • 1 Comment sorted by



  • #include
    #include
    #include
    void isdigit(char s) //char is alpha or nuber//
    {
    if(s>=48&&s<=57)<br />{
    printf("digit");
    }
    }
    void isalpha(char a)
    {
    if((a>=65&&a<=90)||(a>=97&&a<=122))<br />{
    printf("alphabet");
    }
    }
    main()
    {
    clrscr();
    char x='a';
    isalpha(x);
    isdigit(x);
    getch();
    }


Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Top Posters Weekly

Optimum Creative