Hi...
Is there any difference between fprintf(stdout, "........") and printf("........")?
Which one is better?
They seem to do the same thing... I'm looking for a reason to use one and not the other...
ty...
Hi...
Is there any difference between fprintf(stdout, "........") and printf("........")?
Which one is better?
They seem to do the same thing... I'm looking for a reason to use one and not the other...
ty...
Other than the number of characters typed, there is no difference. If you are talking about fprintf versus printf more generally, then obviously fprintf has greater flexibility.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Only as long as the output stream is stdout.They seem to do the same thing... I'm looking for a reason to use one and not the other...
fprintf printf - Google Search
Not everything that can be counted counts, and not everything that counts can be counted
- Albert Einstein.
No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
- Herbert Mayer