DEV Community

Discussion on: Important C Programs

Collapse
 
pauljlucas profile image
Paul J. Lucas

Yes, it does. Otherwise the prompt gets printed after the text in some shells or an inverse % gets printed in zsh. Unless you are appending to a partially printed line, you always need a newline.