I\'m currently learning C with K&R and I\'m having a hard time sending EOF simulation through cmd. I was trying Ctrl + Z which did nothing.
In a Windows 7 console window, I had success pressing F6 followed by Enter. F6 produces the end-of-file ^Z symbol at the command prompt.
Ctrl+Z causes the console window to quit execution, not only the user program.