Fun fact about sync_with_stdio

Правка en2, от -is-this-fft-, 2026-01-08 23:21:01

Consider this code:

#include <iostream>

using namespace std;

int main () {
  ios::sync_with_stdio(false);
  ios::sync_with_stdio(true);
}

In GCC, are the C++ streams like std::cout etc then synchronized with the corresponding C methods like printf?

Answer

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский -is-this-fft- 2026-01-08 23:21:01 14
en1 Английский -is-this-fft- 2026-01-08 23:20:23 2414 Initial revision (published)