Exercise #1.5 - File Copy

alendr · updated September 14, 2021 · C
#include <stdio.h>
/* Copy input to output: - 2nd ver */ 

int main() {
    int c; 
    while ((c = getchar()) != EOF) 
        putchar(c);   
        printf("\nInteger =    %d\n", EOF);
        printf("%d", EOF);
} 

Comments

Please sign up or log in to contribute to the discussion.