When reading a file, if the end of the file is reached, the ________ function can be used to check this condition.
- feof()
- endoffile()
- fileend()
- eofcheck()
The correct option is feof(). This function checks if the end-of-file indicator for a stream has been set, indicating that there are no more characters to read from the file.
Loading...
Related Quiz
- The function ________ is used to copy one string to another in C.
- In a program that processes large volumes of numerical data, which file format would be more efficient in terms of storage space and data retrieval speed?
- When declaring a string literal in C, which character is automatically appended at the end?
- In the context of bit fields, if the declared width is larger than the width of the specified type, the behavior is considered ________.
- When an array is passed to a function, it is actually passing the ________ of the first element.