k&r; exercise 1.1.4 - use `const` for constants
k&r; exercise 1.4 - improve tests