Why the program listed below is not terminating. I am using gcc compiler in linux.
#include <stdio.h>int main(void){ int c; printf("Enter characters: "); while((c = getchar()) != EOF) putchar(c); return 0;}
Why the program listed below is not terminating. I am using gcc compiler in linux.
#include <stdio.h>int main(void){ int c; printf("Enter characters: "); while((c = getchar()) != EOF) putchar(c); return 0;}