Chapter 01 in progress

This commit is contained in:
2026-06-10 23:24:38 +05:30
commit 00a3d41e39
5 changed files with 3068 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
/*
* =====================================================================================
*
* 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 <stdio.h>
/*
* 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;
}