Section 1.5.1 File Copying

Program

#include <stdio.h>
int main()
{
    int c;
    c = getchar();
    while (c != EOF) {
        putchar(c);
        c = getchar();
    }
}
Run this
Comments by Disqus