Skip to content · ⁨コンテンツへスキップ⁩
English

What runs before the compiler

  • Before the compiler sees your code, the preprocessor handles every line that starts with #.
  • It pastes in headers, replaces macros, and removes comments — a simple text step.
  • You have used it already: #include <stdio.h> is a preprocessor command.

日本語

コンパイラ前処理

  • コンパイラがコードを見る前、プレプロセッサは# で始まる各行を処理する。
  • ヘッダファイルを含め、マクロを置き換え、コメントを削除する——単純なテキスト操作である。
  • すでに使用している:#include <stdio.h> はプレプロセッサコマンドである。

プレプロセッサが #include と #define を平文コードに展開し、その後コンパイラが実行する

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP