Computer Science, asked by hcfgnb3986, 1 year ago

When fopen is not able to open file it returns
a) EOF
b)Null
c)routine error
d)compiler dependent

Answers

Answered by phantom79
3
Answer: (B)

Explanation: fopen() returns NULL if it is not able to open the given file due to any of the reasons like file not present, inappropriate permissions, etc.

mark it as brain list
Answered by lovingheart
5

Answer:

Null is returned when fopen is not able to open file

Explanation:

fopen is a keyword used in c language to open a file. It accepts the filename and the mode as the argument. File name has to be specified and the mode such read only or read write has to be specified. It returns null if the user does not have permission to open the file, or if the file does not exist or if it is misspelled. EOF error appears only while the file is being read and has reached to the end of the file. Routine error and compiler dependent are invalid choice.

Similar questions