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 = ' ';
    if (isspace(n))
    {
    printf("Space\n");
    }
    else
    {
    printf("Not Space\n");
    }
    return 0;
    }
    1. Compilation Error
    2. Space
    3. Garbage value
    4. Not Space
    5. None of these
Correct Option: B

Space



Your comments will be displayed only after manual approval.