Computer Science, asked by krunaldevtale21, 18 days ago

If a file pointer is null what does it mean​

Answers

Answered by sahasra43
1

Answer:

7) If a FILE pointer is NULL what does it mean.? FILE *fp; fp=fopen("abc.txt","w"); A) Unable to open a file named abc.txt. B) abc.txt is not available on disk

Explanation:

plz mark me as brainliest

Answered by pearltiwari21
0

Answer:

n your case you can check file open or not by checking fp to NULL. Upon successful completion fopen(), fdopen() and freopen() return a FILE pointer. Otherwise, NULL is returned and errno is set to indicate the error.

Similar questions