k&r; exercise 1.11 - thinking of testing