To enter an EOF, use:
- ^Z (CtrlZ) in Windows
- ^D on Unix-like systems
More Related Contents:
- `getchar()` gives the same output as the input string
- Why do I need to type Ctrl-D twice to mark end-of-file?
- I’m trying to understand getchar() != EOF
- Why Ctrl-Z does not trigger EOF?
- why the program is not terminating in gcc? [closed]
- Why is “while ( !feof (file) )” always wrong?
- How to avoid pressing Enter with getchar() for reading a single character only?
- What is the equivalent to getch() & getche() in Linux?
- What are the applications of the ## preprocessor operator and gotchas to consider?
- Why doesn’t getchar() wait for me to press enter after scanf()?
- What is EOF in the C programming language?
- End of File (EOF) in C
- Alternative (K&R) C syntax for function declaration versus prototypes
- Signal EOF in mac osx terminal
- Why is “while( !feof(file) )” always wrong?
- How to use EOF to run through a text file in C?
- setvbuf not able to make stdin unbuffered
- EOF in Windows command prompt doesn’t terminate input stream
- How to clear stdin before getting new input?
- fgetc, checking EOF
- Comparing unsigned char and EOF
- int c = getchar()?
- getchar does not stop when using scanf
- Representing EOF in C code?
- Why do I require multiple EOF (CTRL+Z) characters?
- Using getchar() in a while loop
- Having troubles with EOF on Windows 7
- Why do i have to input EOF 3 times when using fgets?
- How do you read scanf until EOF in C?
- Using getchar() on c gets the ‘Enter’ after input [duplicate]