71. Which of the following doesn't require an & for the input in scanf()?
72. For floating point numbers, the precision flag specifies the number of decimal places to be printed. When no precision modifier is specified, printf() prints . . . . . . . .
73. Which of the following is the correct syntax for calling function ungetc?
Assume int c and FILE *fp
Assume int c and FILE *fp74. Which of the following cannot be used with ungetc()?
75. Which character of pushback is guaranteed per file?
76. If the user enters 1 s 3.2, what value will be returned by the scanf()?
scanf("%d %f %c", &a, &b, &c);
scanf("%d %f %c", &a, &b, &c);77. String operation such as strcat(s, t), strcmp(s, t), strcpy(s, t) and strlen(s) heavily rely upon.
78. What will be the output of the following C code?
#include <stdio.h>
int main()
{
char str[10] = "hello";
char *p = strrchr(str, 'l');
printf("%c\n", *(++p));
}
#include <stdio.h>
int main()
{
char str[10] = "hello";
char *p = strrchr(str, 'l');
printf("%c\n", *(++p));
}79. Which function will return the current file position for stream?
80. When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.
