File Input Output - Study Mode

[#256] What will be the output of the following C code? #include <stdio.h>
#include <ctype.h>
int main()
{
char c = 't'
printf("%d
", isspace(c))
}
Correct Answer

(A) Non-zero number

[#257] What will be the output of the following C code? #include <stdio.h>
#include <ctype.h>
int main()
{
int i = 9
if (isdigit(i))
printf("digit
")
else
printf("not digit
")
return 0
}
Correct Answer

(B) not digit

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

(D) None of the mentioned

[#259] 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)
}
Correct Answer

(C) d on the screen

[#260] 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
")
else
printf("not space
")
return 0
}
Correct Answer

(C) not space