Answer : A
List – I List – II
a. fopen() iv. returns a file pointer on success and NULL otherwise
b. fclose() i. returns 0 on success and EOF otherwise
c. ferror() ii. checks the error indicator for the given file stream returning non-zero if set and 0 otherwise
d. feof() iii. checks the end of file indicator for the given file stream returning non-zero if set and 0 otherwise
Reference : fopen() fclose() ferror() feof()