41. What is FILE reserved word?
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;
}
#include <stdio.h>
#include <math.h>
int main()
{
unsigned int i = -1;
printf("%f\n", fabs(i));
return 0;
}
43. Each call of va_arg . . . . . . . .
44. setvbuf() and setbuf() function controls buffering for the stream.
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);
}
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;
}
#include <stdio.h>
#include <ctype.h>
int main()
{
int i = 0;
if (isspace(i))
printf("space\n");
else
printf("not space\n");
return 0;
}
47. fputs() function writes a string to a file that only ends with a newline.
48. . . . . . . . . removes the named file, so that a subsequent attempt to open it will fail.
49. Escape sequences are prefixed with . . . . . . . .
50. What is the default return-type of getchar()?
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.