What will be the output of the following C code? [code] #include <stdio.h> #include <ctype.h> int main() { char

Giao Linh

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    #include <ctype.h>
    int main()
    {
        char i = 9;
        if (isdigit(i))
            printf("digit\n");
        else
            printf("not digit\n");
            return 0;
    }
A. digit
B. not digit
C. Depends on the compiler
D. None of the mentioned
 

Tìm kiếm

Back
Top