Sail E0 Webinar
Question


What does fp point to in the program ?


#include<stdio.h>
int main()
{
FILE *fp;
fp=fopen("trial", "r");
return 0;
}
Options:
A .  The first character in the file
B .  A structure which contains a char pointer which points to the first character of a file.
C .  The name of the file.
D .  The last character in the file.
Answer: Option B

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


Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers