41.
What is the prototype of scanf function?

42.
What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
int main()
{
    int i = 90;
    printf("%f\n", sin(i));
    return 0;
}

44.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 10, j = 3, k = 3;
    printf("%d %d ", i, j, k);
}

45.
What will be the output of the following C function when EOF returns?
int fputs(char *line, FILE *fp)

46.
A conversion specification %7.4f means . . . . . . . .

50.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int n;
    scanf("%d", &n);
    ungetc(n, stdin);
    scanf("%d", &n);
    printf("%d\n", n);
    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.