31.
The given statement FILE *fptr;

32.
The function fprintf is used in the program ...........

33.
What are the two predefined FILE pointers in C?

34.
Which one of the following is valid for opening a read-only ASCII file?

35.
Choose the correct difference between getc() and fgetc().

37.
What will be the output of the following C code?
#include <stdio.h>
struct p
{
   struct p *next;
   int x;
};
int main()
{
   struct p* p1 = malloc(sizeof(struct p));
   p1->x = 1;
   p1->next = malloc(sizeof(struct p));
   printf("%d\n", p1->next->x);
   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.