1 1 vote 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 672 views answer comment Share Follow Print See 1 comment 1 1 comment reply Tauhin Gangwar commented Jul 12, 2016 reply Follow flag https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdio.h/getchar check topic common mistakes 3 3 replyShare Please log in or register to add a comment.