Computer Science, asked by naamhainikhil, 2 months ago

Q 80 If a FILE pointer is NULL what does it mean.?
FILE *fp;
fp=fopen("abc.txt","w");
Ops: A.
abc.txt is not available on disk
B.
O Unable to open a file named abc.txt
C.
O All of the answers
D.
O None​

Answers

Answered by sanjumor2017
0

Explanation:

A null is used to indicate failure because no file pointer will ever have that value. If a file is opened foe writing, any pre-exiting file with that name will be overwritten. This is because when a file is opened in a write mode, a new file is created.

Similar questions