http://kor.i2p/books/The%20C%20Programming%20Language%20by%20K&R/chapter1.html
Write a program that prints its input one
word per line. 1.6 Arrays Let is write a program to count the number of occurrences of each digit, of
white space characters (blank, tab, newline), and of all other characters.
This is artificial, but it permits us to illustrate several aspects of C in
one program. There are twelve categories of input, so it is convenient to use an array to
hold the number of occurrences of each digit, rather than ten individual
variables.