I believe this would cause the newline not to be printed in the unknown command error, so it is necessary.
This is true in C++ but not in C.