Question: If a file is opened with the following code sequence: FILE * pFile; pFile = fopen ( file . name , r ) ; Which

If a file is opened with the following code sequence:
FILE *pFile;
pFile = fopen(file.name,r);
Which of the following is the correct statement for closing the file:
Question 2 options:
close("file.nane");
Nothing, the file will be closed automatically.
closefile();
fclose(pFile);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!