Question
#include<stdio.h>
int main()
{
FILE *fp;
fp=fopen("trial", "r");
return 0;
}
What does fp point to in the program ?
#include<stdio.h>
int main()
{
FILE *fp;
fp=fopen("trial", "r");
return 0;
}
Answer: Option B
Was this answer helpful ?
The fp is a structure which contains a char pointer which points to the first character of a file.
Was this answer helpful ?
Submit Solution