Had to verify. And yes. Kernighan and Ritchie really did this. TIL :)
And no, Stroustroup did NOT do this in the C++ book and also no, Knuth didn’t do this in AOCP :)

@jwildeboer

Knuth's version was MUG (MIX user's group).

The one thing that K&R really could usefully have included in their book would have been the statement:

"Look, we've mangled the formatting of our examples and put the brackets all over the fucking place because our publishers told us to save space. It shouldn't need saying, but DON'T DO THIS AT HOME kids: put the brackets on lines by themselves FFS, just as you've been doing forever in ALGOL, BCPL, ect ect."