See my previous comment, anyone learning C from K&R should not be writing C period.
That book is legendary only in the magnitude of financial damages it (directly and indirectly) enabled, caused by people who read it and thought that they could now write C.
¹https://www.amazon.com/Programming-Language-2nd-Brian-Kernig...