DEV Community

Discussion on: Important C Programs

Collapse
 
pauljlucas profile image
Paul J. Lucas

None of your programs print the terminating newline.

Collapse
 
shubhamathawane profile image
Shubham Athawane

Yes! Try to run it once you'll find that everything is correct. I mean it doesn't need newline.

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.