#include<stdio.h>
int main(){
int c = getchar();
while(c != EOF){
putchar(c);
c = getchar();
}
}
In above code why does not the program terminates by itself after c becomes EOF? Reference of the code > Book: K&R's The C Programming Language 2nd Edition, Page: 18