Detecting and Clearing Read and Write Errors using ferror and clearerr Function

This video tutorial made by the Learning Lad teaches how to detect and clear the read and write errors using ferror and clearerr function in c and c++.

This Tutorial begins with explaing about the read and write errors and how this ferror and clearerr functions can be used to detect the read and write errors along with the syntax of ferror function which is
int ferror(FILE *fp)
and clearerr function which is
void clearerr(FILE *fp)
with the parameters required and return values.
Then this video explains how to use ferror and clearerr functions in program by creating a file read error manually in detail with an example.