4 ms·
It doesn't hurt to use (f)puts anyway when you intend to print a static string. This way you avoid extra overhead when using compilers that don't do this or bui
by mid-kid 5y ago
It doesn't hurt to use (f)puts anyway when you intend to print a static string. This way you avoid extra overhead when using compilers that don't do this or building with flags that disable this optimization, as well as just clarify your intent.
- ncmncm 5y agoTypically if you're calling printf you are not concerned about overhead.