please do not use cplusplus.com, use cppreference instead. cplusplus.com often is wrong, out of date, or just missing things.
Re:Getting the ^D
by AdieuToLogic on Monday April 10, 2023 @12:36AM
(#35509219)
Noted.
Is this particular citation, "wrong, out of date, or just missing things"?
None of the above for this case, but generally not a good idea to look there. Instead: https://en.cppreference.com/w/c/io
Its value is platform dependent. As per the C++ standard[0]:
0 - https://cplusplus.com/reference/cstdio/EOF/