Hello everyone, this is my first post.
I also, began to learn programming only a week ago.
This is an example in Kernighan and Ritchie book ("The C programming language).
My question is: Why putchar print all the characters taken by getchar and not only the last one ?Code:#include <stdio.h> main() { int c; while ((c = getchar()) != EOF) putchar(c); }