help me with isalpha

HI am reading integer.now how can i use isalpha condition der..

Comments

  • [code]
    #include
    #include
    #include
    #include

    int main(void) {

    int numbers[] = { 121, 97, 4545, 300, 34, 76 }, i;

    for(i=0; i < sizeof(numbers)/sizeof(int); i++) {
    printf("%4d %10s [%c]
    ", numbers[i],
    isalpha(numbers[i]) ? "isalpha" : "not alpha",
    isalpha(numbers[i]) ? numbers[i] : ' ');
    }

    return (0);
    }
    [/code]

    Not sure what you're asking...



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion