Which function in C is used to flush the output buffer of a stream?
- fflush()
- fprintf()
- fputc()
- fputs()
The fflush() function in C is used to flush the output buffer of a stream, ensuring that any buffered data is written to the file or console.
Loading...
Related Quiz
- The keyword ________ is used to define a structure in C.
- How does the 'ternary' operator (?:) work in C?
- What is the significance of the size_t return type in the fwrite function?
- To allocate memory dynamically and initialize it to a specific value, the ________ function can be used in C.
- In the context of bit fields, if the declared width is larger than the width of the specified type, the behavior is considered ________.