End of File

What is the significance of EOF?

Questions by GOPA ROY

Showing Answers 1 - 3 of 3 Answers

EOF is simply a macro designating a negative value.
Some books are refered EOF is -1. It doesn't have to be -1.
You can signal end-of-file from the command line with a control character(Ctrl ^),
usually a combination of ctrl+z for Windows systems or ctrl+d for POSIX systems.

Thanks,
MJA

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions