skip to main | skip to sidebar

Sunday, May 10, 2009

In C/C++, is printf faster than cout?

Is there a difference in performance between printf and cout





and


scanf and cin. Please Help.

In C/C++, is printf faster than cout?
Cout and printf are both buffered file functions, so neither will be faster. There might be a microscopic lag in printf due to work done by the CPU to format printf, but that should be almost non-existant.


Posted by qxwrtu at 5:42 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

c++ printf

Blog Archive

  • ▼  2009 (160)
    • ►  July (144)
    • ▼  May (16)
      • What does 'f' represent in "printf" function in C ...
      • Suggest a definition for printf statement in c?
      • Can someone explain to me in the simplest form. wh...
      • What is the difference between stream output and p...
      • What does f stand for in printf in c programming?
      • How to use printf in c with out ;?
      • What do printf in c?
      • Where can i find assembly code of c functio like ...
      • Can we write a function similar to printf() in C L...
      • Write a program in c for printf function instead o...
      • In C/C++, is printf faster than cout?
      • What are .dll files? Are these file get called in ...
      • How do you printf quotation marks " " in C?
      • C++ help.... printf command?
      • Java printf problem, System.out.printf("%*c", n, '...
      • Simple error in C; printf function.?

About Me

qxwrtu
View my complete profile
  • c++ get
  • c++ printf
  • c++ language
  • c++ game
  • c++ test