/* * ===================================================================================== * * Filename: file_copying.c * * Description: * * Version: 1.0 * Created: 10/06/26 11:03:43 PM IST * Revision: none * Compiler: gcc * * Author: YOUR NAME (), * Organization: * * ===================================================================================== */ #include /* * NEW IMPORTANT LEARNING * * 1. * EOF value is bigger than * what can be stored in a variable * with char data-type. * * 2. * for example, * c = getchar ( ) is an expression * which evaluates and return a value * of c variable after the assignment. * This is, hence, used in much larger * expression. */ /* copy input to output */ int main ( ) { /* int c; */ /* while ( ( c = getchar ( ) ) != EOF ) */ /* putchar ( c ); */ int a = EOF; printf ( "%d\n", a ); return 0; }