Which of the following causes an error?
(a) Trying to read a file that doesn’t exist
(b) Inability to write data in a file
(c) Failure to allocate memory with the help of malloc
(d) All of the mentioned
I had been asked this question in an online interview.
Asked question is from Error Handling topic in section Input and Output in C of C