Assignments.md (460B)
1 # Assigments (in C) 2 3 **Source:** C Programming Book 4 5 **Chapter:** 1.5.1 6 7 Assigments in C have a value. This value is the value on the left side of the assigment operator. This can allow for interesting code like 8 9 ```c 10 #include <stdio.h> 11 12 int main(){ 13 int c; 14 while((c = getchar()) != EOF){ 15 putchar(c); 16 } 17 } 18 19 ``` 20 21 which continually prints the character received when the character received is not equivalent to the symbolic constant 'EOF'.