File Input Output MCQs
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 64medium
On freeing a dynamic memory, if the pointer value is not modified, then the pointer points to.
Question 65easy
void * malloc(size_t n) returns?
Question 66medium
What does the following segment of C code do?
fprintf(fp, "Copying!");Advertisement
Question 67medium
Which of the following represents the function for scanf()?
Question 68easy
Which of the following can be used for random number generation?
Question 69hard
What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *s = "myworld";
int i = 9;
printf("%*s", i, s);
}Advertisement
Question 70medium
What will be the output of the following C statement?
fprintf(stderr, "error: could not open filen");Question 71easy
Which among the following is the odd one out?
Question 72easy
The syntax of the scanf() is scanf("control string ", arg1,arg2,arg3,....,argn); the prototype of control string is