Input / Output

Q1:
What does fp point to in the program ?
#include<stdio.h>

int main()
{
    FILE *fp;
    fp=fopen('trial', 'r');
    return 0;
}

A The first character in the file

B The name of the file.

C The last character in the file.

D A structure which contains a char pointer which points to the first character of a file.

ANS:A - The first character in the file

The fp is a structure which contains a char pointer which points to the first character of a file.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.