Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C++
/
C file I/O
On an r+b update stream, what must normally separate a successful read from a following w…
from C file I/O
C23 (GCC 13.3.0)
intermediate
3 min
On an r+b update stream, what must normally separate a successful read from a following write when that read did not encounter EOF?
A successful file-positioning call such as fseek.
Only fflush, because it discards unread input portably.
A call to feof, even when it returns false.
Nothing; + removes every sequencing restriction.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the byte-copy loop
Spot the bug
A new version is available
Reload