42.
What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
int main()
{
    unsigned int i = -1;
    printf("%f\n", fabs(i));
    return 0;
}

45.
What will be the output of the following C code if following commands are used to run (considering myfile exists)?
gcc -otest test.c
./test < myfile

#include <stdio.h>
int main()
{
    char c = 'd';
    putchar(c);
}

46.
What will be the output of the following C code?
#include <stdio.h>
#include <ctype.h>
int main()
{
    int i = 0;
    if (isspace(i))
        printf("space\n");
    else
        printf("not space\n");
        return 0;
}

Read More Section(File Input Output)

Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.