0

What is EOF. How is it generated? Which key corresponds to "end of file" on the keybord??

Edited by Rupindersingh: n/a

2
Contributors
4
Replies
6
Views
6 Years
Discussion Span
Last Post by Rupindersingh
0

EOF is a macro defined in <stdio.h>. It's not the value of a keypress, rather it's an "impossible" value returned by various input functions to signal that end-of-file was detected.

Which key corresponds to "end of file" on the keybord??

That depends on your operating system. On Windows systems the key combination is Ctrl+Z. On Unix, Linux, and Mac OSX systems, the key combination is Ctrl+D. If you're not on one of those (they're the most common around here), please specify.

1

Are you really running DOS, or just a simulated DOS in Windows? Anyway, it's the same as Windows: Ctrl+Z.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.