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

Not Digit



Your comments will be displayed only after manual approval.