No output on console after ctrl^D? : From K&R ansi c, section 1.5.3:
the line count program is replicated exactly in clion. I'm using Mngw64. There's no output on console when the getchar() comparison is made with EOF. it wotks fine with other characters. Using CTRL^D exits the program with 'code 0' without any output on console. I've tried running it in bash but still no output. Stuck at this from a very long time.