1 votes 1 votes In the given program, when compiled in Dev c++ and executed, the main does not terminate. is there any explanation to this? ( page 16, Dennis Ritchie) #include<stdio.h> main() { int c; c=getchar(); while(c!=EOF) { putchar(c); c=getchar(); } } Programming in C programming-in-c + – namanom1 asked Jul 12, 2016 namanom1 452 views answer comment Share Follow See 1 comment See all 1 1 comment reply Tauhin Gangwar commented Jul 12, 2016 reply Follow Share https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdio.h/getchar check topic common mistakes 3 votes 3 votes Please log in or register to add a comment.