Home » C Programming » Strings » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    #include <ctype.h>
    int main()
    {
    char n = 20;
    if (isdigit(n))
    {
    printf("Digit\n");
    }
    else
    {
    printf("Not Digit\n");
    }
    return 0;
    }
    1. 20
    2. Digit
    3. Compilation Error
    4. Not Digit
    5. None of these
Correct Option: D

Not Digit



Your comments will be displayed only after manual approval.