0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Cのひっかけ

0
Posted at

標準出力とバッファリング

printfはまず バッファにデータを溜める。
あるタイミングでまとめて OS に渡して、最終的にターミナルに表示。

いつか?↓
標準出力 (stdout) は通常 行バッファリング というモードになってる。

  • 改行 (\n) を出力したとき
  • バッファがいっぱいになったとき

\n無しデバッグで悩まされたが、こういうこと。


0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?