To check for errors during file operations, you can use the ______ function.
- fileStatus()
- checkFileError()
- feof()
- ferror()
The correct option is d) ferror(). This function is used to check for errors during file operations and returns a non-zero value if an error is encountered.
Loading...
Related Quiz
- A function in C returns a value to the calling function using the ________ keyword.
- When dealing with large files, what is the advantage of using fread and fwrite over fscanf and fprintf?
- The ________ keyword in C is used to give a reference to a variable that is already defined in some other scope.
- What potential issue should be considered when using recursion in C programs?
- What is the primary use of the fseek function in file handling?