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().
36. . . . . . . . . is an optional argument that gives the maximum number of characters to be read.
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;
}
#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;
}
38. If the conversion characters of int d, i, o, u and x are preceded by h, it indicates?
39. Which among the following mathematical function do not have a "double" return-type?
40. Which of the following function compares 2 strings with case-insensitively?
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.