What is the difference between printf() and puts() in C?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-03-16T13:03:28Z Indexed on 2010/03/16 13:06 UTC
Read the original article Hit count: 111

Filed under:
|
|

First up, I should let you know that I am learning C, so my apologies if this question seems stupid to a more advanced developer.

I know you can print with printf() and puts(). I can also see that printf() allows you to embed variables inside and do some stuff like formatting.

Is puts() merely a primitive version of printf(). Should it be used for every possible printf() without string interpolation?

Thanks

© Stack Overflow or respective owner

Related posts about c

    Related posts about learning