In the C Programming Language, the fscanf function reads formatted output from stream.
The syntax for the fscanf function in the C Language is:
int fscanf(FILE *stream, const char *format, ...);
The stream where the output will be read.
Describes the input as well as provides a placeholder to insert the formatted string. Here are a few examples: