How does a program recognize the end of an input file?
What will be an ideal response?
Programming languages can recognize the end of data in a file automatically, through a code that is stored at the end of the data. Many programming languages use the term eof (for "end of file") to refer to this marker that automatically acts as a sentinel.
Computer Science & Information Technology