Completed half of K&R, ch1 in C