File Input Output MCQs

296 questionsC-ProgramPage 19 of 33

Practice free File Input Output multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 296 questions — no login required.

Question 163hard
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 10, j = 3;
    printf("%d %d %d", i, j);
}
Question 164easy
What will cos(x) return?
Question 165medium
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int n;
    scanf("%d", n);
    printf("%d", n);
}
Advertisement
Question 166hard
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    short int i;
    scanf("%h*d", &i);
    printf("%hd", i);
    return 0;
}
Question 167medium
Choose the right statement for fscanf() and scanf()
Question 168easy
What is the function of the mode ' w+'?
Advertisement
Question 169easy
gets() does the following when it reads from stdin.
Question 170easy
What is the qualifying input for the type specifier G?
Question 171medium
Which of the following doesn't require an & for the input in scanf()?