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

Digit



Your comments will be displayed only after manual approval.